Skip to main content
Requires authentication and image:delete permission

Endpoint

DELETE /images

Request

JSON body with the image URL to delete:
{
  "url": "https://s3.eu-central-003.backblazeb2.com/bucket-name/ganjan/users/profile-pictures/uuid-filename.jpg"
}

Example Request

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"
  }'

Response

{
  "success": true,
  "statusCode": 200,
  "data": "Image Deleted Successfully"
}

Error Responses

{
  "success": false,
  "statusCode": 404,
  "error": {
    "message": "Failed to find image",
    "code": "NOT_FOUND"
  }
}