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

# Detach knowledge

> Stop an agent answering from a knowledge item. The item stays in the library.

> [!NOTE]
>
> This endpoint is for the VIP plan only. Other plans get a `403`. See [Plan access](https://docs.nedzo.ai/api-reference/introduction.md#plan-access).

The agent stops answering from the item. The item stays in the library. Returns `204`.

## Path Parameters

**agentId** `string` *required*

Agent UUID

**knowledgeItemId** `string` *required*

The knowledge item to detach.

```bash cURL theme={null}
curl -X DELETE "https://api.nedzo.ai/v1/agents/123e4567-e89b-12d3-a456-426614174000/knowledge/7c9e6679-7425-40de-944b-e07fc1f90ae7" \
    -H "Authorization: Bearer YOUR_API_KEY"
```

```json Response theme={null}
// 204 No Content
```

## Errors

| Status | When |
| - | - |
| `400` | An id is not a valid UUID. |
| `404` | The agent is not in your API key's scope, or the item is not attached. |


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