> ## 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.

# Delete Dataset

> Delete a dataset, its chunks, and its embeddings

## Request

```bash theme={null}
DELETE https://api.pathors.com/v1/projects/{projectId}/knowledgebases/{knowledgebaseId}/datasets/{datasetId}
```

### Path Parameters

<ParamField path="projectId" type="string" required>The project ID</ParamField>
<ParamField path="knowledgebaseId" type="string" required>The knowledgebase containing the dataset</ParamField>
<ParamField path="datasetId" type="string" required>The dataset to delete</ParamField>

### Headers

<ParamField header="Authorization" type="string" required>
  Bearer token using your developer key
</ParamField>

## Response

```json theme={null}
{
  "message": "Dataset deleted successfully"
}
```

### Example

```bash theme={null}
curl -X DELETE https://api.pathors.com/v1/projects/{projectId}/knowledgebases/kb_abc123/datasets/dataset_xyz789 \
  -H "Authorization: Bearer dk_your_key"
```

<Warning>
  This action is irreversible. The original file, all chunks, and all embeddings are permanently removed. Search results from this dataset stop appearing immediately.
</Warning>

The dataset must belong to the specified knowledgebase — cross-knowledgebase deletion returns `403`.
