Skip to main content
DELETE

Authentication

This endpoint requires authentication with a Bearer token. Only users with Super Admin or HR Manager roles can delete departments.
string
required
The unique identifier of the department to delete

Query Parameters

boolean
default:"false"
If true, permanently deletes the department. If false or omitted, performs a soft delete.

Response

boolean
Indicates if the request was successful
string
Confirmation message
Soft delete marks the department as deleted but preserves the data in the database. Hard delete permanently removes the department record.