# Delete image

`DELETE /v1/images/{id}`

Deletes the stored file and forgets the image. Emails that were already sent stop showing it, because they link that file. A copied image that a template or a broadcast still uses is copied again the next time that one is saved. An uploaded image has no address to copy it from: it comes back, at the same address, when the same file is uploaded again.

Needs the scope: `images:write`

## Path parameters

- `id` (string, required): The id of the item. Up to 64 characters.

## Returns

- `object` (string): What kind of thing was removed. One of: `list`, `email`, `broadcast`, `audience`, `template`, `template_version`, `template_starter`, `automation`, `metrics`, `domain`, `api_key`, `webhook`, `log`, `workspace`, `member`, `method`, `account`, `inbound_email`, `webhook_delivery`, `contact`, `plan`, `checkout`, `invoice`, `ask_answer`, `suppression`, `chat`, `automation_run`, `event`, `event_receipt`, `import`, `import_inventory`, `topic`, `contact_property`, `image`, `server`.
- `id` (string): The id of what was removed.
- `deleted` (true): Always `true`: it is gone for good.

## Example

cURL:

```bash
curl -X DELETE "$OPENSEND_API_URL/v1/images/img_366370f5fd51b418111aa30a" \
  -H "Authorization: Bearer $OPENSEND_API_KEY"
```

TypeScript:

```ts
await opensend.images.remove('img_366370f5fd51b418111aa30a')
```

CLI:

```bash
opensend images remove img_366370f5fd51b418111aa30a
```

MCP:

```json
{
  "name": "images_remove",
  "arguments": {
    "id": "img_366370f5fd51b418111aa30a"
  }
}
```

Answer:

```json
{
  "object": "image",
  "id": "img_366370f5fd51b418111aa30a",
  "deleted": true
}
```
