Actions77
- Employee Actions
- Attendance Actions
- Employee Checkin Actions
- Expense Claim Actions
- Holiday List Actions
- Leave Allocation Actions
- Leave Application Actions
- Salary Slip Actions
- Shift Assignment Actions
- Custom DocType Actions
- Frappe Method Actions
Custom DocType → Delete
AI-generatedSummary
Delete a document of a specified Custom DocType in ERPNext/Frappe using the selected API version.
Inputs
- API Version — Choose between Frappe REST API versions v1 (/api/resource) and v2 (/api/v2/document) for the delete request. Defaults to v1.
- Custom DocType (required) — Specify the exact name of the Custom DocType from which the document will be deleted.
- Document Name (required) — Provide the unique name or ID of the document within the specified Custom DocType to delete.
Output shape
a JSON object indicating success with keys 'success' (boolean true) and 'name' (the deleted document's name)
The operation returns a JSON confirmation object upon successful deletion. If an error occurs, it is thrown as a node error or returned as error information if 'Continue on Fail' is enabled.
Examples
Example 1: Delete a candidate record from a Custom DocType called 'Job Applicant' in ERPNext v1 API
Set API Version to v1, Custom DocType to 'Job Applicant', and Document Name to the candidate's document ID. Executing the node deletes that record and returns { success: true, name: '