delete_document
Preview or delete a Frappe record by DocType and name; deletions require confirmation using the modified token from preview to prevent stale or accidental changes.
Instructions
Preview or delete a record; confirmation requires the preview's modified token.
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": {
"doctype": "<doctype>",
"name": "<name>"
},
"name": "delete_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| confirm | No | ||
| doctype | Yes | ||
| expected_modified | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||