palbaseDocs

Palbase Storage · API

DELETE/storage/buckets/{bucket}/objects/{path}

Delete an object

Deletes the object and its renditions; the bytes are swept from the blob store after. Emits file.deleted.

Called by your server, with the project's secret key.

Path

bucketstring · requiredThe bucket's name: a lowercase letter, then lowercase letters, digits and -, 2 to 63 characters.
pathstring · requiredThe object's path as ONE percent-encoded segment: a/b.jpg is a%2Fb.jpg. Segments are separated by /, none empty, . or ..; 1 to 1024 bytes of UTF-8.
curl
curl -X DELETE "https://<your-ref>.palbase.studio/storage/buckets/<bucket>/objects/<path>" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

204Deleted

400The request is malformed: a field, a path or a parameter is wrong

401No key, or not a key of this project (the edge's answer)

403Not the project's secret key; or, on a credential-less route, a private object or a link that is not valid for it

404No such bucket, object or variant

429The project's request rate, or its storage quota for the period, is used up — or, slowed for its month's traffic, it has as many downloads under way as are paced at once; Retry-After says when to try again

503The platform could not answer now; retrying is safe (Retry-After)

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation DeleteObject of storage's contract.