delete-diagram
Move a Lucid document to the trash by ID, removing the entire diagram rather than individual shapes. Use it for cleanup or create-new-then-trash-old workflows.
Instructions
Delete a Lucid document by moving it to the trash. This removes the ENTIRE document (there is no shape-level delete or in-place edit in the API). Useful for cleanup or the create-new-then-trash-old pattern.
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-diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentId | Yes | The ID of the Lucid document to delete (move to trash). Can be extracted from URLs like https://lucid.app/lucidchart/{id}/edit. This trashes the WHOLE document, not individual shapes. |