Move a diagram to the trash
delete_diagramMoves a diagram to the trash at the person’s request; the person can restore it in Archboard. It cannot delete permanently, and it is meant only for a diagram the person asked to delete. Works only where the diagram’s permission (list_workspaces, list_diagrams, get_canvas) is delete, which needs Delete chosen for this app under Settings → Connected apps; where it is read or write, the call is refused (such as forbidden with grant_permission) and nothing is moved. Returns trashed, diagramId, title, deletedAt and userMessage (a confirmation for the person, in their language).
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": {
"diagramId": "<diagramId>"
},
"name": "delete_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diagramId | Yes | Diagram id (from list_diagrams or create_diagram). |