# Delete a saved reply

Source: https://docs.vlayers.ai/reference/email/delete-email-template

`DELETE /v1/email/mailboxes/{address}/templates/{name}` · scope `mailbox:manage`

Removes one saved reply from an inbox. Mail already sent from it is not affected. A key limited to this one inbox cannot delete one while the inbox sends only from saved replies.

Requires an API key with the `mailbox:manage` scope.

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `address` | path | string | yes | The inbox address. Example: `"support@acme.vlayersmail.com"` |
| `name` | path | string | yes | The name the reply was saved under. Example: `"Refund approved"` |

## Request

cURL:

```bash
curl -X DELETE "https://api.vlayers.ai/v1/email/mailboxes/$MAILBOX_ADDRESS/templates/$TEMPLATE_NAME" \
  -H "Authorization: Bearer $VOICELAYER_API_KEY"
```

TypeScript:

```ts
import { VoiceLayer } from '@voicelayer/api';

const voicelayer = new VoiceLayer();

const { summary } = await voicelayer.email.deleteTemplate('<mailbox-address>', '<template-name>');
console.log(summary);
```

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

result = vl.email.delete_template("<mailbox-address>", "<template-name>")
print(result.summary)
```

## Response `200`

```json
{
  "deleted": true,
  "summary": "Deleted the template \"Refund approved\" from support@acme.vlayersmail.com."
}
```
