Authentication
This endpoint requires Bearer token authentication with one of the following roles:
Path Parameters
The unique identifier of the employee (UUID format)
Query Parameters
If set to true, permanently deletes the employee. Otherwise performs a soft delete.
Response
Indicates if the request was successful
curl -X DELETE https://api.companyflow.com/employees/emp-uuid-here \
-H "Authorization: Bearer YOUR_TOKEN"
{
"success": true,
"message": "employee deleted"
}