ERPNext HRMS icon

ERPNext HRMS

Work with ERPNext/Frappe HRMS v15-v16 documents and methods

Holiday List → Delete

AI-generated

Summary

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.

Links

Discussion