v8

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-214977372.7 KB
Caching

Purge cache

This API will purge CDN cache and ImageKit.io's internal cache for a file. Note: Purge cache is an asynchronous process and it may take some time to reflect the changes.

post/v1/files/purge

Request body

urlstring uri required

The full URL of the file to be purged.

Example request

{
  "url": "https://ik.imagekit.io/your_imagekit_id/default-image.jpg"
}

Response

Purge request submitted successfully. A requestId will be returned.

requestIdstring

Unique identifier of the purge request. This can be used to check the status of the purge request.