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

# Delete images

> Remove avatar and header images for a subname.

Use `deleteAvatar` and `deleteHeader` to remove an avatar or header image. These methods require a `provider` so the SDK can sign the SIWE message for you.

### Delete an avatar

```typescript theme={null}
const result = await client.deleteAvatar({
  subname: 'myavatar.offchainsub.eth',
});

console.log(result.message);
```

### Delete a header

```typescript theme={null}
const result = await client.deleteHeader({
  subname: 'myavatar.offchainsub.eth',
});
```

### DeleteOptions

| Parameter | Type     | Description                           |
| --------- | -------- | ------------------------------------- |
| `subname` | `string` | ENS subname to delete the image from. |

### DeleteResult

```typescript theme={null}
export interface DeleteResult {
  message: string;
  deletedAt: string;
}
```
