DeleteRepositoryGroup

Updated at:

Deletes the specified code group.

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

POST /repository/groups/{groupId}/remove HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

groupId

integer

Yes

The ID of the code group.

22901

Request parameters

Parameter

Type

Required

Description

Example

organizationId

string

Yes

The ID of the organization. You can find this ID in your browser's URL after logging in to the Alibaba Cloud DevOps console. The URL follows this format: https://devops.aliyun.com/organization/{organizationId}.

624666bd54d036291ae13a36

accessToken

string

No

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

f0b1e61db5961df5975a93f9129d2513

body

object

Yes

The request body.

reason

string

Yes

The reason for deleting the code group. This parameter is required.

代码组废弃且不再使用

Response elements

Element

Type

Description

Example

object

The response structure.

requestId

string

The request ID.

30F2DA15-2877-5FC9-BC71-F7F394717907

errorMessage

string

The error message.

""

errorCode

string

The error code.

SYSTEM_UNKNOWN_ERROR

success

boolean

Indicates whether the request was successful.

true

result

object

The returned data.

result

boolean

Indicates whether the deletion was successful.

true

Examples

Success response

JSON format

{
  "requestId": "30F2DA15-2877-5FC9-BC71-F7F394717907",
  "errorMessage": "\"\"",
  "errorCode": "SYSTEM_UNKNOWN_ERROR",
  "success": true,
  "result": {
    "result": true
  }
}

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.