Requires authentication and
image:delete permission✨ The Urban Management docs now have a brand-new home! Explore the improved documentation experience
Delete an uploaded image from the storage bucket
image:delete permissionDELETE /images
{
"url": "https://s3.eu-central-003.backblazeb2.com/bucket-name/ganjan/users/profile-pictures/uuid-filename.jpg"
}
curl -X DELETE "https://api.example.com/images" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"url": "https://s3.eu-central-003.backblazeb2.com/bucket-name/ganjan/users/profile-pictures/uuid-filename.jpg"
}'
{
"success": true,
"statusCode": 200,
"data": "Image Deleted Successfully"
}
{
"success": false,
"statusCode": 404,
"error": {
"message": "Failed to find image",
"code": "NOT_FOUND"
}
}
Was this page helpful?