Skip to content
Last updated

Delete a department from an organization.

DELETEhttps://api.aitronos.com/v1/organizations/{organization_id}/departments/{department_id}

Permanently deletes a department. The department must have no child departments and no members before it can be deleted. Remove all members and child departments first, or reparent children to a different department.

Path Parameters

organization_id string required

The unique identifier of the organization (format: org_*).

department_id string required

The unique identifier of the department to delete (format: dept_*).


Returns

No content. Returns a 204 No Content status code on success.

cURL
curl -X DELETE https://api.aitronos.com/v1/organizations/org_xyz789/departments/dept_abc123 \
  -H "Authorization: Bearer $ACCESS_TOKEN"