> For the complete documentation index, see [llms.txt](https://deepmode.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://deepmode.gitbook.io/docs/api-endpoints/handling-images/delete-image.md).

# Delete Image

Deletes a specific photo.

#### Endpoint

```
DELETE /api/images/{id}
```

#### Parameters

<table><thead><tr><th width="201">Parameter</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td><td>Yes</td><td>The unique identifier of the image to be deleted.</td></tr></tbody></table>

#### Request Example

```bash
curl -X DELETE "https://api.deepmode.ai/api/images/a9f7e5d1c3a2f91e3d5c6" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_SECRET_API_KEY"
```

#### Response

Upon successful deletion, the API returns the following response:

```json
{"message": "Deleted image successfully"}
```
