---
title: "Admin Delete Document"
method: DELETE
path: "/admin/documents/{doc_id}"
tags: ["admin"]
---

# Admin Delete Document

`DELETE /admin/documents/{doc_id}`

## Request

- Base URL: `https://api.specproof.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.specproof.ai/admin/documents/{doc_id}`
- Auth: none declared. Required headers: `x-admin-secret`

Delete a document and all its chunks, FTS entries, and embeddings.

## Path parameters

- `doc_id` integer, required

## Headers

- `x-admin-secret` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/specproof/apis/specproof-portal-api.md) · [All operations](https://skmtc.dev/specproof/apis/specproof-portal-api/llms.txt) · [OpenAPI document](https://skmtc.dev/specproof/apis/specproof-portal-api/revisions/228b03caa929?raw)
