Help Center/ CodeArts Artifact/ API Reference/ API/ Repository Management/ Moving a Repository to the Recycle Bin
Updated on 2025-12-05 GMT+08:00

Moving a Repository to the Recycle Bin

Function

This API is used to move a repository to the recycle bin.

Calling Method

For details, see Calling APIs.

URI

DELETE /cloudartifact/v5/repositories

Request Parameters

Table 1 Request body parameters

Parameter

Mandatory

Type

Description

repository_ids

No

String

Repository ID set.

format

No

String

Type.

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

status

String

Definition

Request status.

Range

success: The request is successful.

error: The request fails.

trace_id

String

Definition

Request ID, which uniquely identifies the current request.

Range

A string of digits and hyphens (-).

result

Object

Definition

Response of the request. The return value varies according to the API.

Range

The value range varies according to the API.

Example Requests

This API is used to delete a repository.

https://artifact.example.myhuaweicloud.com/cloudartifact/v5/repositories

{
  "format" : "maven2",
  "repository_ids" : [ "xx-xxxxx-x_5a775fdcb14f4431b6c0015618140bc3_maven_2_201" ]
}

Example Responses

Status code: 200

OK

{
  "status" : "success",
  "trace_id" : "143002-1701175914578-88",
  "result" : null
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.