Delete images
If you want to remove an image from the Cloudflare Images storage, you have two options:
- Delete the image from the dashboard.
- Call the API endpoint to delete it.
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 :token'
You will receive a response similar to this:
{
"result": {},
"result_info": null,
"success": true,
"errors": [],
"messages": []
}