---
title: "Delete Document Command"
url: "https://docs.ravendb.net/6.2/client-api/commands/documents/delete"
version: "6.2"
language: "python"
---

# Delete Document Command

> Client language: Python. Also available for [C#](https://docs.ravendb.net/6.2/client-api/commands/documents/delete.md), [Java](https://docs.ravendb.net/6.2/client-api/commands/documents/delete.java.md), [PHP](https://docs.ravendb.net/6.2/client-api/commands/documents/delete.php.md), [Node.js](https://docs.ravendb.net/6.2/client-api/commands/documents/delete.nodejs.md).
>
> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

> **Note**
>
> - Use `DeleteDocumentCommand` to remove a document from the database.
>
> - In this page:
>
>   - [Example](#example)
>   - [Syntax](#syntax)

## Example

```python
command = DeleteDocumentCommand("employees/1-A", None)
session.advanced.request_executor.execute_command(command)
```

## Syntax

```python
class DeleteDocumentCommand(VoidRavenCommand):
  def __init__(self, key: str, change_vector: Optional[str] = None): ...
```

| Parameters | Type | Description |
| - | - | - |
| **key** | `str` | ID of a document to be deleted |
| **change\_vector** | `str` (optional) | Entity Change Vector, used for concurrency checks (`None` to skip check) |

## See also

- [Get document](https://docs.ravendb.net/6.2/client-api/commands/documents/get.python.md)
- [Put document](https://docs.ravendb.net/6.2/client-api/commands/documents/put.python.md)
- [Send multiple commands using a batch](https://docs.ravendb.net/6.2/client-api/commands/batches/how-to-send-multiple-commands-using-a-batch.md)
