DeleteTag

Updated at:

Deletes a tag from a code repository.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

DELETE /repository/{repositoryId}/tags/delete HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

repositoryId

integer

Yes

The repository ID.

2289464

Request parameters

Parameter

Type

Required

Description

Example

organizationId

string

Yes

The organization ID. This string can be obtained from the Yunxiao URL, such as https://devops.aliyun.com/organization/[OrganizationId].

609633ffd40eb063bac8165a

accessToken

string

No

The personal access token. This parameter is not required if you use an Alibaba Cloud AccessKey pair or Security Token Service (STS) for temporary authorization.

f0b1e61db5961df5975a93f9129d2513

tagName

string

Yes

The tag name.

v1.0

Response elements

Element

Type

Description

Example

object

Schema of Response

requestId

string

The request ID.

60945D4F-CF6D-5CFF-89ED-1D1F6657032C

errorMessage

string

The error message.

""

errorCode

string

The error code.

Openapi.RequestError

success

boolean

Indicates whether the call was successful.

true

result

object

The returned result.

tagName

string

The name of the deleted tag.

v1.0

Examples

Success response

JSON format

{
  "requestId": "60945D4F-CF6D-5CFF-89ED-1D1F6657032C",
  "errorMessage": "\"\"",
  "errorCode": "Openapi.RequestError",
  "success": true,
  "result": {
    "tagName": "v1.0"
  }
}

Error codes

HTTP status code

Error code

Error message

Description

403 Forbidden.AccessDenied The user is not authorized to perform the operation. The user is not authorized to perform the operation.
403 Forbidden.UserNotInCurrentOrganization The user is not in the organization and is not authorized to perform the operation.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.