---
title: "DELETE /collections/{name}/document/{docID}"
method: DELETE
path: "/collections/{name}/document/{docID}"
tags: ["document"]
---

# DELETE /collections/{name}/document/{docID}

`DELETE /collections/{name}/document/{docID}`

Delete a document by docID

## Path parameters

- `name` string, required
- `docID` string, required

## Response `200`

ok

## Other responses

- `400` — error
- `404` — error

## Changes

> 53 revisions in range; 2 could not be searched.

- **2026-03-30** `f46903303e53` — 1 info
  - added the non-success response with the status `404`
- **2026-03-02** `8c167ee47363` — 1 info
  - api operation id `document_delete` removed and replaced with `delete_document`
- **2026-02-26** `e5def1d468f5` — 1 info
  - endpoint added
- **2025-06-02** `60812f5416c5` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/sourcenetwork/apis/defradb-api/changes/collections/:name/document/:docID/delete.md)

---

[API](https://skmtc.dev/sourcenetwork/apis/defradb-api.md) · [All operations](https://skmtc.dev/sourcenetwork/apis/defradb-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sourcenetwork/defradb-api/revisions/659e79583f79/schema)
