---
title: "Delete Document"
method: DELETE
path: "/datastores/{datastore_id}/documents/{document_id}"
tags: ["/datastores/{id}/documents"]
---

# Delete Document

`DELETE /datastores/{datastore_id}/documents/{document_id}`

Delete a given document from its `Datastore`. This operation is irreversible.

## Path parameters

- `datastore_id` string, uuid, required — Datastore ID of the datastore from which to delete the document
- `document_id` string, uuid, required — Document ID of the document to delete

## Response `200`

Successful Response

- EmptyResponse

## Other responses

- `422` — Validation Error

## Changes

- **2025-05-08** `17bdb8a33fb4` — 2 info
  - api tag `/datastores/{id}/documents` added
  - api tag `/datastores` removed

[Change history](https://skmtc.dev/contextualai/apis/endpoints/changes/datastores/:datastore_id/documents/:document_id/delete.md)

---

[API](https://skmtc.dev/contextualai/apis/endpoints.md) · [All operations](https://skmtc.dev/contextualai/apis/endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/contextualai/endpoints/revisions/ca7f807eec8b/schema)
