Employee - Delete

This article explains all the delete requests which can be sent to the employee object.

Please note that an employee record cannot be deleted from the system. Only an attachment linked to an employee can be deleted. 

Delete an attachment linked to an employee

DELETE /xEmployee/:employeeId/attachments/:attachmentId

Deletes an attachement for an employee. For example,

Request:

DELETE https://corehr-api.hrcloud.com/v1/cloud/xEmployee/defc24ead9b34bacdab06b7a46fca06a/attachments/8958b7809285cf68ec5ba0f1eb6dcb2a