> ## 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 a custom action

> Stop an agent using a custom action. The action stays in the workspace.

> [!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 using the action. The action stays in the workspace. Returns `204`.

## Path Parameters

**agentId** `string` *required*

Agent UUID

**customActionId** `string` *required*

Custom action UUID

```bash cURL theme={null}
curl -X DELETE "https://api.nedzo.ai/v1/agents/123e4567-e89b-12d3-a456-426614174000/custom-actions/5a3c1e2b-8d7f-4b6a-9c0e-1f2a3b4c5d6e" \
    -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 action is not attached to it. |


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