# Delete image

{% hint style="info" %}
**Before getting started:** You will need to [create your API key](https://docs.mattermix.com/api/create-api-key).
{% endhint %}

## Delete image from Mattermix and Google CDN

<mark style="color:red;">`DELETE`</mark> `https://mtmx.io/v1/image/:uid`

The `uid` for the image can be found in the image URL. For example, if the image URL is `https://cdn.mattermix.com/images/620d5489e8b565e74ce552c1/484ec22d-bfc9-4fc8-b764-6cf8d9b91f55.png` the `uid` is `484ec22d-bfc9-4fc8-b764-6cf8d9b91f55`.

#### Headers

| Name                                            | Type   | Description           |
| ----------------------------------------------- | ------ | --------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | `Bearer YOUR-API-KEY` |

{% tabs %}
{% tab title="202: Accepted Export created successfully" %}

```javascript
{
    "success": true,
}
```

{% endtab %}

{% tab title="401: Unauthorized Unauthorized request" %}

```javascript
{
    "success": false,
    "statusCode": 401,
    "message": "Please provide a valid API key."
}
```

{% endtab %}

{% tab title="500: Internal Server Error Internal server error" %}

```javascript
{
    "success": false,
    "statusCode": 500,
    "message": "Server error."
}
```

{% endtab %}

{% tab title="404: Not Found Image not found" %}

```javascript
{
    "success": false,
    "statusCode": 404,
    "message": "Image with URL not found."
}
```

{% endtab %}
{% endtabs %}
