> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chatnorris.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Excluir agente

> Excluir permanentemente um agente de IA.

# Excluir agente

Exclui um agente de forma permanente. Esta ação não pode ser desfeita.

```http theme={null}
DELETE https://app.chatnorris.ai/api/v2/chatbots/{chatbot_id}
Authorization: Bearer <sua_api_key>
```

**Escopo necessário:** `chatbots:write`

***

## Path parameters

| Parâmetro | Tipo | Descrição |
| - | - | - |
| `chatbot_id` | string | ID do agente a excluir |

***

## Resposta `200 OK`

```json theme={null}
{
  "status": "success",
  "data": {
    "deleted": true
  }
}
```

***

> [!WARNING]
>
> Excluir um agente também apaga a base de conhecimento, o histórico de conversas e a configuração do widget dele. Esta ação é irreversível.

***

## Erros comuns

| Code | Descrição |
| - | - |
| `NOT_FOUND` | O agente não existe ou não pertence à sua organização |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.