Skip to main content
DELETE
/
v1
/
projects
/
{projectId}
/
knowledgebases
/
{knowledgebaseId}
/
datasets
/
{datasetId}
Delete Dataset
curl --request DELETE \
  --url https://api.pathors.com/v1/projects/{projectId}/knowledgebases/{knowledgebaseId}/datasets/{datasetId} \
  --header 'Authorization: <authorization>'

Documentation Index

Fetch the complete documentation index at: https://docs.pathors.com/llms.txt

Use this file to discover all available pages before exploring further.

Request

DELETE https://api.pathors.com/v1/projects/{projectId}/knowledgebases/{knowledgebaseId}/datasets/{datasetId}

Path Parameters

projectId
string
required
The project ID
knowledgebaseId
string
required
The knowledgebase containing the dataset
datasetId
string
required
The dataset to delete

Headers

Authorization
string
required
Bearer token using your developer key

Response

{
  "message": "Dataset deleted successfully"
}

Example

curl -X DELETE https://api.pathors.com/v1/projects/{projectId}/knowledgebases/kb_abc123/datasets/dataset_xyz789 \
  -H "Authorization: Bearer dk_your_key"
This action is irreversible. The original file, all chunks, and all embeddings are permanently removed. Search results from this dataset stop appearing immediately.
The dataset must belong to the specified knowledgebase — cross-knowledgebase deletion returns 403.