ERPNext HRMS icon

ERPNext HRMS

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

Leave Allocation → Delete

AI-generated

Summary

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.

Links

Discussion