# /image/delete

## Cloudinary image deletion.

<mark style="color:blue;">`GET`</mark> `geolytix.xyz/api/location/edit/image/delete`

Delete an image uploaded to the Cloudinary image hosting platform.

#### Query Parameters

| Name       | Type   | Description                                             |
| ---------- | ------ | ------------------------------------------------------- |
| dbs        | string | The database connection for the location table.         |
| table      | string | The location table.                                     |
| field      | string | The array field which stores image URL.                 |
| image\_src | string | The image URL to be removed from field array.           |
| qID        | string | The id field for the location table.                    |
| id         | string | The id of the location.                                 |
| token      | string | A signed token is required to access private endpoints. |

{% tabs %}
{% tab title="200 Image successfully deleted." %}

```javascript
Image deleted.
```

{% endtab %}
{% endtabs %}

{% hint style="warning" %}
In order for an image to be stored on the Cloudinary image hosting platform the image key with a valid Cloudinary connection string must be provided in the environment settings.
{% endhint %}
