Updated on 2026-01-13 GMT+08:00

Deleting OBS Assets in Batches

Function

This API is used to delete OBS assets in batches in JSON format.

Calling Method

For details, see Calling APIs.

URI

POST /v1/{project_id}/asset-center/obs/buckets/batch-delete

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID, which is used to identify a specific project.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

obs_ids

No

Array of strings

OBS bucket ID.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

msg

String

Returned message, which is used to describe the operation result or error information.

status

String

Return status, for example, '200', '400'.

Status code: 201

OBS asset deleted.

Example Requests

POST /v1/{project_id}/asset-center/obs/buckets/batch-delete

{
  "obs_ids" : [ "xxxx", "xxxx" ]
}

Example Responses

None

Status Codes

Status Code

Description

200

OBS assets deleted in batches.

201

OBS asset deleted.

401

Unauthorized access. Request denied.

403

Unauthorized operation. Request denied.

404

Project does not exist. Batch adding failed.

Error Codes

See Error Codes.