Skip to main content
Call this API to delete a specified department by its department ID.

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.

Request

Query parameters

Request body

Request example

Java
Python
PHP
C#

Response

Response body

Response example

Error codes

If an error is returned when you call this API, look up the solution by the error message in the Global error codes document.