API call description
A department cannot be deleted in the following cases:- The root department (department ID 1) cannot be deleted.
- The department or its sub-departments still contain employees that have not been deleted.
Call this API to delete a specified department by its department ID, ensuring that the department has no sub-departments or members before deletion.