DELETE
/
v2
/
team
/
datasets
/
{dataset_id}
/
datasources
/
{datasource_id}
curl --request DELETE \
  --url https://ai.data.cloud/api/v2/team/datasets/{dataset_id}/datasources/{datasource_id} \
  --header 'Content-Type: application/json' \
  --header 'x-pd-api-key: <api-key>' \
  --data '{
  "user_id": "tmm-dafasdfasdfasdf"
}'
{
  "code": 123,
  "data": {}
}

Authorizations

x-pd-api-key
string
header
required

Headers

x-pd-external-trace-id
string

The trace ID you set in your system to trace this request. It can be up to 128 characters in length. If the request fails, you can provide it to the Powerdrill team to help with troubleshooting.

Path Parameters

dataset_id
string
required

The ID of the dataset that contains the data source you want to delete.

To check the datasets you have access to, call GET /v2/team/datasets.

datasource_id
string
required

The ID of the data source you want to delete.

To check data sources existing in a specified dataset, call GET /v2/team/datasets/{id}/datasources.

Body

application/json
user_id
string
required

Your user ID, which uniquely identifies you within your team. To obtain your ID:

Response

200 - application/json
code
integer
required

Status code. 0 indicates that the operation is successful. Otherwise, the operation fails. For error troubleshooting, refer to Error Codes.

data
object | null

Null returned when the operation is successful.