您可以使用仪表板、API 或通过 Images 绑定 从 Worker 删除 Cloudflare Images 存储中的图像。
-
在 Cloudflare 仪表板中,转到 Hosted Images(托管图像) 页面。
Go to Hosted images ↗ -
找到要删除的图像并选择 Delete(删除)。
-
(可选)要删除多张图像,请选择要删除图像旁边的复选框,然后选择 Delete selected(删除所选)。
您的图像将从账户中删除。
向删除图像端点 发出 DELETE 请求。{image_id} 必须在 API 调用 URL 中完全 URL 编码。
curl --request DELETE https://api.cloudflare.com/client/v4/accounts/{account_id}/images/v1/{image_id} \
--header "Authorization: Bearer <API_TOKEN>"图像删除后,响应返回 "success": true。