Skip to main content
DELETE
/
api
/
v1
/
datasets
/
{dataset_id}
Delete Dataset
curl --request DELETE \
  --url https://api.cognee.ai/api/v1/datasets/{dataset_id} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.cognee.ai/api/v1/datasets/{dataset_id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.text)
{
  "message": "<string>"
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

dataset_id
string<uuid>
required

Dataset UUID, the id field from GET /api/v1/datasets (not the name)

Example:

"b8a7c3de-4f5a-4b6c-8d9e-0f1a2b3c4d5e"

Response

Successful Response