Skip to main content
DELETE
/
employees
/
{id}
curl -X DELETE https://api.companyflow.com/employees/emp-uuid-here \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "success": true,
  "message": "employee deleted"
}

Authentication

This endpoint requires Bearer token authentication with one of the following roles:
  • super_admin
  • hr_manager

Path Parameters

id
string
required
The unique identifier of the employee (UUID format)

Query Parameters

hard_delete
boolean
default:"false"
If set to true, permanently deletes the employee. Otherwise performs a soft delete.

Response

success
boolean
Indicates if the request was successful
message
string
Confirmation message
curl -X DELETE https://api.companyflow.com/employees/emp-uuid-here \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "success": true,
  "message": "employee deleted"
}

Build docs developers (and LLMs) love