# Delete voice agent

> Remove a voice agent; its call history stays.

Source: https://docs.mycrmsim.com/docs/voice-agents/delete-voice-agent

```http
DELETE https://backend.mysmsgateway.app/api/v1/ext/voice-agents/{id}
```

- Category: myCRMSIM Calls / Voice Agents
- Auth: Bearer access token
- Scope: `voice_agents.write`

Its past calls remain in *List voice calls* with `voice_agent_deleted: true`. The AI agent itself is untouched.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The voice agent id. Example: `va_01HZX4Q8K2` |
| `workspace_id` | query | number | yes | A workspace of the installer. Example: `7` |

## Response 200

OK

```json
{
  "success": true,
  "message": "Voice agent deleted",
  "data": {
    "id": "va_01HZX4Q8K2"
  }
}
```

## Response 401

Missing or invalid token

```json
{
  "success": false,
  "message": "Invalid or expired access token."
}
```

## Response 403

Voice agents are switched off for the account

```json
{
  "success": false,
  "code": "voice_agents_off",
  "message": "Voice agents are not enabled for this account."
}
```

## Response 403

Missing scope

```json
{
  "success": false,
  "message": "Missing scope(s): voice_agents.write. This integration was granted: …"
}
```

## Response 404

Voice agent does not exist or is not the installer's (same response for both)

```json
{
  "success": false,
  "message": "Voice agent not found or not accessible to this token"
}
```
