---
title: "Delete department"
method: DELETE
path: "/v2/companies/{companyId}/departments/{departmentId}"
tags: ["Departments"]
---

# Delete department

`DELETE /v2/companies/{companyId}/departments/{departmentId}`

This endpoint deletes department by ID.

## Query parameters

- `detachUsers` boolean

## Response `204`

Deleted Successfully

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — The specified resource was not found.

---

[API](https://skmtc.net/spotnana/apis/company-api.md) · [All operations](https://skmtc.net/spotnana/apis/company-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spotnana/company-api/revisions/36b1305ad44a/schema)
