Updated on 2025-07-28 GMT+08:00

Permanently Deleting a Dataset

Function

For data uploaded from OBS, you need to delete the associated raw data in OBS when deleting the datasets.

URI

POST /v1/{project_id}/workspaces/{workspace_id}/data-management/dataset/permanent-delete:

Request Parameters

Table 1 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

Used to obtain the permission required to call APIs. The token is the value of X-Subject-Token in the response header in Authentication.

Content-Type

Yes

String

MIME type of the request body. The value is application/json.

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

dataset_name

Yes

string

Definition:

Dataset name.

Constraints:

The name length ranges from [1,128].

Value range:

N/A

Default value:

N/A

catalog

No

CatalogEnum

Definition:

Dataset form.

Constraints:

N/A

Value range:

  • ORIGINAL: A type of dataset generated during data importing.
  • PROCESS: A type of the dataset generated during data processing.
  • PUBLISH: A type of dataset generated during data publishing.

Default value:

N/A

delete_obs

No

boolean

Definition:

Whether to delete OBS data.

Constraints:

N/A

Value range:

  • true: Delete OBS data.
  • false: Do not delete OBS data.

Default value:

N/A

Response Parameters

Parameter

Type

Description

dataset_name

string

Definition:

Dataset name.

Constraints:

N/A

Value range:

The name length ranges from [1,128].

Default value:

N/A

catalog

CatalogEnum

Definition

Dataset form.

Constraints:

N/A

Value range:

  • ORIGINAL: A type of dataset generated during data importing.
  • PROCESS: A type of the dataset generated during data processing.
  • PUBLISH: A type of dataset generated during data publishing.

Default value:

N/A

result

boolean

Definition:

Operation result.

Constraints:

N/A

Value range:

  • true: Deletion success.
  • false: Deletion failure.

Default value:

N/A

Example Request

Permanently delete the original OBS data corresponding to the dataset.

POST https://{endpoint}/v1/{project_id}/workspaces/{workspace_id}/data-management/dataset/permanent-delete:?dataset_name=pub_345135233&catalog=PROCESS&delete_obs=true

Request Header:
Content_Type: application/json
X-Auth-Token: MIIVV...

Request Params:
dataset_name: pub_345135233
catalog: PROCESS
delete_obs:true

Example Response

{
    "DatasetOperationResp": [
        {
            "dataset_name": pub_345135233,
            "catalog": PROCESS,
            "result": true,
        },
}

Status Codes

For details, see Status Codes.

Error Codes

For details, see Error Codes.