ZapAPI Docs
Get StartedConceptsAI GatewayGuidesPayment GatewaySDKAPI ReferenceResources
ApiUploads

Delete a blob by URL

DELETE
/api/v1/uploads

Deletes a blob from the connected store. Call this when replacing/removing images (e.g. old avatar) to avoid orphan storage costs. Auth: zap_* API key with uploads:write scope, or dashboard JWT.

Authorization

bearer

Header Parameters

X-API-Version?string

API version for header-based versioning

Default"1"
Value in"1""2"

Request Body

application/json
  1. body
url*string

Response Body

Blob deleted.

Example Request
curl -X DELETE 'http://localhost:3001/api/v1/uploads' \  -H 'Content-Type: application/json' \  -d '{  "url": "https://yjsm6thumlqlykuv.public.blob.vercel-storage.com/avatars/x.png"}'
Example Response200
Empty