frappe_delete_doc
Permanently delete a document by its doctype and name from Frappe. This action is irreversible and removes all associated data.
Instructions
Permanently delete a document by its doctype and name. This action is irreversible — the document and all its associated data are removed from the system. Use with caution. For audit purposes, consider updating the document status to 'Cancelled' instead where applicable (e.g., for Sales Invoices, Sales Orders).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The unique document name or ID to permanently remove from the system (e.g. 'TODO-00001', 'NOTE-00001'). This operation cannot be undone. | |
| doctype | Yes | The DocType of the document to delete (e.g. 'ToDo', 'Note', 'Contact', 'Address'). WARNING: Deleting transactional or parent documents may affect or orphan linked child records. |