# Delete Image

#### 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"}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://deepmode.gitbook.io/docs/api-endpoints/handling-images/delete-image.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
