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
Holiday List → Delete
AI-generatedSummary
Delete a Holiday List document in ERPNext by specifying its document name and the API version to use.
Inputs
- API Version (required) — Frappe REST API version to use for document and method requests; options are v1 (stable) and v2 (for Frappe v16).
- Document Name (required) — The unique ID or name of the Holiday List document to delete.
Output shape
a single JSON object confirming deletion with 'success' status and the deleted document's name
The operation returns an object with a success indicator and the name of the deleted Holiday List. If the deletion fails, an error is thrown. Errors can be captured and handled with continueOnFail setting.
Examples
Example 1: Delete a Holiday List document named 'HolidayList-2024' using API version v1
Set API Version to 'v1' and Document Name to 'HolidayList-2024' in the Holiday List resource and Delete operation.