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
Employee → Delete
AI-generatedSummary
Delete an Employee document in ERPNext by specifying its document name and optionally choosing the API version to use.
Inputs
- API Version — Select the Frappe REST API version to use for the delete request, either v1 (/api/resource) or v2 (/api/v2/document). Defaults to v1.
- Document Name (required) — The unique identifier (document name) of the Employee document to delete.
Output shape
a JSON object with keys 'success' (boolean) and 'name' (string) confirming deletion of the specified Employee document.
If the delete request succeeds, the response contains { success: true, name: documentName }. If the deletion fails or the document does not exist, an error is thrown or returned depending on the node's error handling settings.
Examples
Example 1: Delete a specific employee by document name
Set resource to Employee and operation to Delete. Provide the documentName of the employee to be deleted. Optionally set API Version to v1 or v2.