Help Center/ CodeArts Artifact/ API Reference/ API/ Recycle Bin/ Deleting Components in the Recycle Bin in Batches
Updated on 2023-12-28 GMT+08:00

Deleting Components in the Recycle Bin in Batches

Function

Delete components in the recycle bin in batches.

URI

DELETE /cloudartifact/v5/trashes

Request Parameters

Table 1 Request body parameters

Parameter

Mandatory

Type

Description

[items]

Yes

Array of TrashArtifactModelForDelete objects

Delete lists in batches.

Table 2 TrashArtifactModelForDelete

Parameter

Mandatory

Type

Description

id

Yes

String

Repository ID.

fomat

Yes

String

Repository type.

uri

Yes

String

URI

status

Yes

String

Status.

include_pattern

No

String

Path whitelist.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

status

String

Result status.

trace_id

String

Request ID.

result

String

Returned result of the request. The return value varies according to the API.

Example Requests

Delete components in the recycle bin in batches.

https://artifact.cn-south-1.myhuaweicloud.com/cloudartifact/v5/trashes

[ {
  "id" : "cn-north-7_5a775fdcb14f4431b6c0015618140bc3_debian_43",
  "format" : "debian",
  "uri" : "cn-north-7_5a775fdcb14f4431b6c0015618140bc3_debian_43/",
  "status" : "active"
}, {
  "id" : "cn-north-7_5a775fdcb14f4431b6c0015618140bc3_go_4",
  "format" : "go",
  "uri" : "cn-north-7_5a775fdcb14f4431b6c0015618140bc3_go_4/",
  "status" : "active"
} ]

Example Responses

Status code: 200

OK

{
  "status" : "success",
  "trace_id" : "143002-1701173929284-59",
  "result" : "success"
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.