---
title: "Trash a document"
method: POST
path: "/v1beta/documents/{document_id}/trash"
tags: ["Documents"]
---

# Trash a document

`POST /v1beta/documents/{document_id}/trash`

Moves a document to trash and revokes all non-owner access.

## Path parameters

- `document_id` string, required — Document ID.

## Request body

- object — TrashDocumentRequest identifies the document to trash.

## Response `200`

Success

- TrashDocumentResponse — TrashDocumentResponse is empty on success.

## Other responses

- `400` — Invalid request parameters
- `401` — Authentication failed - missing or invalid API key
- `403` — Authorization failed - valid key but insufficient permissions
- `404` — Resource not found
- `429` — Too many requests
- `500` — Internal server error

---

[API](https://skmtc.net/factify-inc/apis/factify-api.md) · [All operations](https://skmtc.net/factify-inc/apis/factify-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/factify-inc/factify-api/revisions/8baabdfb82bf/schema)
