Cloudflare Docs
Visit Cloudflare Image Optimization on GitHub
Set theme to dark (⇧+D)

Delete images

You can delete an image from the Cloudflare Images storage using the dashboard or the API.

Delete an image using the dashboard

  1. Log in to the Cloudflare dashboard and select your account.
  2. Click Images.
  3. Find the image you want to remove and click Delete.

Delete an image using the API

For detailed information on using the API, refer to the API endpoint documentation.

Here is an example of how to delete an image through an API call:

curl -X DELETE<ACCOUNT_ID>/images/v1/<IMAGE_ID> \
--header 'Authorization: Bearer <API_TOKEN>'

You will receive a response similar to this:

"result": {},
"result_info": null,
"success": true,
"errors": [],
"messages": []