---
title: "Delete (archive) a compliance document"
method: DELETE
path: "/compliance/documents/{id}"
tags: ["compliance", "documents"]
---

# Delete (archive) a compliance document

`DELETE /compliance/documents/{id}`

Soft-deletes a group-drive document so it stops appearing in lists.

## Path parameters

- `id` string, required

## Response `200`

OK

- DocumentsDeleteOutput
  - `deleted` boolean
  - `id` string

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `default` — Error response.

## Changes

- **2026-08-06** `fe2041c5ba86` — 1 warning, 1 info
  - changed the pattern of the `path` request parameter `id` from `^doc_[0-9a-hjkmnp-tv-z]{26}$` to `^doc_[0-7][0-9a-hjkmnp-tv-z]{25}$`
  - the `id` response's property pattern was changed from `^doc_[0-9a-hjkmnp-tv-z]{26}$` to `^doc_[0-7][0-9a-hjkmnp-tv-z]{25}$` for the status `200`

[Change history](https://skmtc.dev/stablesea/apis/stable-sea-backend/changes/compliance/documents/:id/delete.md)

---

[API](https://skmtc.dev/stablesea/apis/stable-sea-backend.md) · [All operations](https://skmtc.dev/stablesea/apis/stable-sea-backend/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stablesea/stable-sea-backend/revisions/78f4fe30ef9c/schema)
