Delete Document
delete_documentDelete a document from the account. Only documents with status 'completed' or 'revoked' can be deleted; an expired document has to be revoked first. A revoked document is deleted together with its file. A completed document is shared with the people who signed it: it is removed from the account right away, and it is permanently deleted, together with its signed file, once every signer has also deleted their own copy. Always call get_document first to confirm status, then ask the user for confirmation — deletion is irreversible.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"documentId": "<documentId>"
},
"name": "delete_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentId | Yes | Unique identifier of the document to delete |