> For the complete documentation index, see [llms.txt](https://devcenter.unico.io/unico-people/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devcenter.unico.io/unico-people/unico-people-v1/apis/departamentos/delete-department.md). Agents can also search and read this documentation through its [MCP server](https://devcenter.unico.io/unico-people/~gitbook/mcp).

# Delete department

Deleta um departamento da empresa selecionada.

<mark style="color:red;">`DELETE`</mark> \ <mark style="color:$primary;">**Url Produção:**</mark> `https://api.acessorh.com.br`\ <mark style="color:$primary;">**Url Homologação:**</mark> `https://api.rh.homolog.acesso.io`\ <mark style="color:$primary;">**Endpoint:**</mark> `https://api.acessorh.com.br/v1/department`

### **Headers**

| Key                                             | Type   | Description                                                    |
| ----------------------------------------------- | ------ | -------------------------------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Token de acesso adquirido pela plataforma Identity *(bearer)*. |

### **Query Parameters**

| Key                                   | Type   | Description                                                                                                                         |
| ------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------- |
| uid<mark style="color:red;">\*</mark> | string | UID do departamento a ser deletado.                                                                                                 |
| acc<mark style="color:red;">\*</mark> | string | UID da [empresa](https://devcenter.unico.io/unico-people/unico-people-v1/apis/organizacao.md) de onde o departamento será deletado. |

### Exemplo de requisição <a href="#exemplo-de-requisicao" id="exemplo-de-requisicao"></a>

```json

curl --location --request DELETE 'https://api.acessorh.com.br/v1/department?uid=uid%20do%20departamento&acc=uid%20da%20empresa' \
--header 'Authorization: Bearer token de auth'
```

### Exemplo de response <a href="#exemplo-de-requisicao" id="exemplo-de-requisicao"></a>

```json
200 - OK
```
