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
Leave Allocation → Delete
AI-generatedSummary
Delete a specific Leave Allocation document in ERPNext HRMS by providing its document name and selecting the API version.
Inputs
- API Version — Select the Frappe REST API version (v1 or v2) to use for the delete request.
- Document Name (required) — The unique identifier (document name) of the Leave Allocation document to delete.
Output shape
a single JSON object confirming success and returning the deleted document name
The output confirms the deletion with a JSON object containing { success: true, name:
}. Errors are thrown if deletion fails.
Examples
Example 1: Delete the Leave Allocation document with ID 'LA-0001' using the stable v1 API version.
Set Resource to 'Leave Allocation', Operation to 'Delete', API Version to 'v1', and specify 'LA-0001' as the Document Name. Execute the node to delete the document and receive a confirmation response.