Skip to content
Leadtime
English
Esc
navigateopen⌘Jpreview

Delete employee

Soft deletes an employee and the associated user account. The employee is not permanently removed from the database, but marked as deleted with anonymized data.

What happens when deleting an employee:

  1. Employee record is marked as deleted
  2. Associated user account is also marked as deleted
  3. Personal data is anonymized for privacy:
    • firstName and lastName are set to “Deleted User”
    • Email is anonymized
    • Other personal information is cleared
  4. Billing is automatically recalculated to reflect the removal
  5. The employee will no longer appear in employee lists or grids

Note: This is a soft delete operation. The employee data remains in the database but is anonymized and hidden. This operation cannot be undone. Returns 404 if the employee does not exist.

DELETE/employees/{id}
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
idstringrequired
Responses
200
successbooleanrequired
Operation success flag
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X DELETE "https://leadtime.app/api/public/employees/string" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
{
  "success": true
}