ERPNext HRMS icon

ERPNext HRMS

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

Employee → Delete

AI-generated

Summary

Delete an Employee document in ERPNext by specifying its document name and optionally choosing the API version to use.

Inputs

  • API Version — Select the Frappe REST API version to use for the delete request, either v1 (/api/resource) or v2 (/api/v2/document). Defaults to v1.
  • Document Name (required) — The unique identifier (document name) of the Employee document to delete.

Output shape

a JSON object with keys 'success' (boolean) and 'name' (string) confirming deletion of the specified Employee document.

If the delete request succeeds, the response contains { success: true, name: documentName }. If the deletion fails or the document does not exist, an error is thrown or returned depending on the node's error handling settings.

Examples

Example 1: Delete a specific employee by document name

Set resource to Employee and operation to Delete. Provide the documentName of the employee to be deleted. Optionally set API Version to v1 or v2.

Links

Discussion