---
title: "Deletes the document with the specified id."
method: DELETE
path: "/documents/{documentId}"
tags: ["documents"]
---

# Deletes the document with the specified id.

`DELETE /documents/{documentId}`

This operation moves the document to the trash.
            The document itself is moved to the trash synchronously, while its children and related entities will be moved to the trash asynchronously.
            
            <Check title="Required Permissions" icon="key">The user must have at least `manage` permissions for the specified document.</Check>

## Path parameters

- `documentId` string, uuid, required

## Query parameters

- `alsoDeleteChildren` boolean

## Headers

- `Authorization` string, required

## Response `204`

No Content

- object

## Other responses

- `401` — Unauthorized
- `404` — Not Found

---

[API](https://skmtc.net/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.net/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/awork-io/api-v1-reference/versions/f784a53f60df/schema)
