Updated on 2025-02-25 GMT+08:00

Deleting a Dataset

Function

This API is used to delete datasets.

URI

DELETE /v1/{project_id}/datasets/{dataset_id}

Table 1 URI parameter

Parameter

Mandatory

Type

Description

dataset_id

Yes

String

Dataset ID.

project_id

Yes

String

Project ID. For how to obtain the project ID, see Obtaining a Project ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Workspace-Id

Yes

String

Workspace ID. For how to obtain it, see Obtaining a Workspace ID.

X-Auth-Token

Yes

String

User token. Obtain a user token by calling IAM's "Obtaining a User Token" API. X-Subject-Token in the response header is the desired user token.

Response Parameters

Status code: 200

Table 3 Response body parameter

Parameter

Type

Description

data

Boolean

Explanation

Execution result.

Constraints

N/A

Value range

  • true: success.
  • false: failure.

Default value

N/A

Example Request

DELETE https://{endpoint}/v2/{project_id}/datasets/{dataset_id}

Example Response

Status code: 200

The dataset is successfully deleted.

{ 
  "data" : true 
}

Status Codes

Status Code

Description

200

The dataset is successfully deleted.

Error Codes

See Error Codes.