ERPNext HRMS icon

ERPNext HRMS

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

Leave Application → Delete

AI-generated

Summary

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.

Links

Discussion