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 Application → Delete
AI-generatedSummary
Delete a Leave Application document in ERPNext HRMS by specifying its document name and API version.
Inputs
- API Version — Select the Frappe REST API version to use for the delete request; options are 'v1' (stable) or 'v2' (Frappe v16). Defaults to 'v1'.
- Document Name (required) — Specify the unique document name or ID of the Leave Application to delete.
Output shape
a single JSON object indicating success and echoing the document name
Returns {success: true, name:
} on successful deletion. If an error occurs, it will throw or return an error message depending on node settings.
Examples
Example 1: Deleting a Leave Application with ID 'LA-0001' using API version v1
Set API Version to 'v1', Document Name to 'LA-0001', and operation to 'Delete'. The node deletes the document and returns a success confirmation.