---
title: "Delete Datastore"
method: DELETE
path: "/datastores/{datastore_id}"
tags: ["/datastores"]
---

# Delete Datastore

`DELETE /datastores/{datastore_id}`

Delete a given `Datastore`, including all the documents ingested into it. This operation is irreversible.

This operation will fail with status code 400 if there is an active `Agent` associated with the `Datastore`.

## Path parameters

- `datastore_id` string, uuid, required — ID of the datastore to delete

## Response `200`

Successful Response

- EmptyResponse

## Other responses

- `422` — Validation Error

---

[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)
