Delete images
You can delete an image from the Cloudflare Images storage using the dashboard or the API.
- Log in to the Cloudflare dashboard and select your account.
- Select Images.
- Find the image you want to remove and select Delete.
- (Optional) If you want to delete more than one image, select the checkbox next to the images you want to delete and then Delete selected.
Your image(s) will be deleted from your account.
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 https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/images/v1/<IMAGE_ID> \--header 'Authorization: Bearer <API_TOKEN>'
<IMAGE_ID>
must be fully URL encoded in the API call URL.
You will receive a response similar to this:
{"result": {},"result_info": null,"success": true,"errors": [],"messages": []}