> For the complete documentation index, see [llms.txt](https://docs.navigaglobal.com/imengine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.navigaglobal.com/imengine/usage/purge.md).

# Purge

## Purge cache for an image

<mark style="color:blue;">`GET`</mark> `https://imengine.example.com/purge.php`

The endpoint removes all crops of the image from AWS S3 and queue up a wildcard cache invalidation for the specific image.

#### Query Parameters

| Name            | Type   | Description                                                                                                   |
| --------------- | ------ | ------------------------------------------------------------------------------------------------------------- |
| uuid            | string | This param makes it possible to use same parameters as the normal image.php url. Uuid for the image to purge. |
| invalidationUrl | string | The imengine url of the image that should be invalidated.                                                     |

{% tabs %}
{% tab title="200 Cache successfully purged." %}

```
```

{% endtab %}

{% tab title="400 Something went wrong. Could be AWS invalidation that failed or  malformed query." %}

```
```

{% endtab %}
{% endtabs %}

Example:

```http
https://imengine.example.com/purge.php?invalidationUrl=https://imengine-domain/imengine/image.php?uuid=2889e667-f181-4283-85d9-293e9798a28c&type=preview&source=false&function=hardcrop&width=500&height=500&q=85
```
