# Delete a voice clone

`DELETE https://my.neuronai.uz/api/v1/tts/voices/{id}`

Справочник API › Клонирование голоса

Deletes a voice clone for good. Stock voices cannot be deleted.

If the voice service fails (502), the voice is kept, so try again.

**Authentication:** `Authorization: Bearer <API key>`, a key with `voices:write`.

## Параметры пути

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | The voice id. |

## Ответ (204, no body)

No content

### Заголовки

| Header | Type | Description |
| --- | --- | --- |
| `X-Request-Id` | string | Identifies this request. A JSON body carries it as `request_id` too; quote it to support. |

## Ошибки

Every error has the same JSON shape:

```json
{
  "error": {
    "type": "invalid_request_error",
    "code": "invalid_request",
    "message": "The request is malformed or failed validation.",
    "param": null
  },
  "request_id": "7c4a8d09-ca37-4f3c-9e2b-1b0f3c2a9d41"
}
```

| Status | Meaning |
| --- | --- |
| 401 | The API key is missing or not recognized (`invalid_api_key`), revoked (`api_key_revoked`), disabled (`api_key_disabled`) or expired (`api_key_expired`). |
| 403 | The key lacks the permission this endpoint needs (`insufficient_permissions`), or the client IP is not in its allowlist (`ip_not_allowed`). |
| 404 | No such voice for this key: `not_found`. |
| 502 | The voice service could not do it: `upstream_error`. The description above says what was kept. |
| default | Any other error, in the same shape, such as `server_error` (500) or `service_unavailable` (503). |

## Examples

### TypeScript SDK

```typescript
import {NeuronAI} from "@naiuz/sdk";

const client = new NeuronAI();

await client.voices.delete("<voice-id>");
```

### Python SDK

```python
from naiuz import NeuronAI

client = NeuronAI()

client.voices.delete("<voice-id>")
```

### PHP SDK

```php
$client = new \Naiuz\NeuronAI();

$client->voices->delete('<voice-id>');
```

---

Source: https://docs.neuronai.uz/ru/api/reference/voice-cloning/delete-voice
