> For the complete documentation index, see [llms.txt](https://wiki.4thtech.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.4thtech.io/sdk-and-white-label/ethereum/mail/deletemail.md).

# deleteMail

{% hint style="info" %}
Reference for SDK 0.5.x (maintenance mode). See [Status](/sdk-and-white-label/status.md).
{% endhint %}

Deletes a specific mail. This method can only be performed by the receiver of the mail.

### Usage

```ts
const mailIndex = 1n;
const txResponse = await mail.deleteMail(mailIndex);
```

### Returns

`Promise<EthereumTransactionResponse>`

A promise that resolves to the response from the `sendTransaction` method on the `walletClient` provided by the developer on `Mail` initialization.

### Parameters

#### mailIndex

* **Type** `bigint`

The index of the mail to be deleted.
