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

# Delete a campaign agent

> Soft-delete a Campaign Manager agent. Agents with active campaigns are rejected until those campaigns finish, are cancelled, or are archived.

```http theme={null}
DELETE https://api.vobiz.ai/api/v1/account/{account_id}/campaign/agents/{agent_id}
```

Archives the agent rather than hard-deleting its data. Archived agents disappear from [List agents](https://www.vobiz.ai/docs/campaign-manager/agents/list-agents.md) but remain attached to historical campaigns.

> [!NOTE]
>
> **Authentication required**
>
> * `X-Auth-ID` — your Vobiz account ID
> * `X-Auth-Token` — your Vobiz auth token

**account\_id** `string` *required*

Your Vobiz account ID. Use the same value in `X-Auth-ID`.

**X-Auth-ID** `string` *required*

Your Vobiz account ID, for example `MA_XXXXXXXX`.

**agent\_id** `string` *required*

ID of the agent, returned by [Create an agent](https://www.vobiz.ai/docs/campaign-manager/agents/create-agent.md).

## Example

```bash cURL theme={null}
curl -X DELETE \
  "https://api.vobiz.ai/api/v1/account/{account_id}/campaign/agents/{agent_id}" \
  -H "X-Auth-ID: {account_id}" \
  -H "X-Auth-Token: {auth_token}"
```

> [!WARNING]
>
> Deleting returns `409` when the agent still has a `running`, `queued`, or `paused` campaign. Finish, [cancel](https://www.vobiz.ai/docs/campaign-manager/controls/cancel-campaign.md), or [archive](https://www.vobiz.ai/docs/campaign-manager/controls/archive-campaign.md) the dependent campaigns first.


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