Admin-only endpoint to delete a department by its ID. Returns the deleted department’s basic details if successful.
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token |
| Parameter | Type | Required | Description |
|---|---|---|---|
| departmentId | string | Yes | Department ID to delete |
deletedAt timestamp is added to track when deletion occurredBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier of the department to delete