---
title: "Archive Document"
method: DELETE
path: "/documents/{documentKey}"
tags: ["Documents"]
---

# Archive Document

`DELETE /documents/{documentKey}`

## Request

- Base URL: `https://eu-west-1.api.silverflow.com/v1`
- URL: `https://eu-west-1.api.silverflow.com/v1/documents/{documentKey}`
- Auth: one of:
  - HTTP basic
  - HTTP bearer
- TypeScript: <https://skmtc.dev/silverflow/apis/silverflow-api/docs/documents/:documentKey/delete.ts> (a function with typed inputs; its response is checked against the schema)

This operation archives a Document.

Requires `disputes:ArchiveDocument` or `documents:Archive` permission.

## Path parameters

- `documentKey` string, required: Uniquely identifies a document

## Headers

- `If-Match` integer

## Response `204`

Document deleted successfully

## Other responses

- `401`: Authentication information is missing or invalid
- `403`: The authenticated client is forbidden to make the request for the resource identified.
- `404`: The requested resource was not found
- `412`: The conditions specified in the HTTP headers of the request were not met.
- `429`: The number of requests (per minute) has exceeded the configured maximum

---

[API](https://skmtc.dev/silverflow/apis/silverflow-api.md) - [All operations](https://skmtc.dev/silverflow/apis/silverflow-api/llms.txt) - [OpenAPI document](https://skmtc.dev/silverflow/apis/silverflow-api/revisions/43ecbe4fd6ea?raw)
