Skip to Content
Omnibase

Delete file from storage

DELETE
/api/v1/storage/object

Storage object paths are unique across the entire bucket, not per tenant. Prefix paths with the tenant ID or another unique namespace, for example tenants/<tenant_id>/avatars/me.png.

Authorization

headerX-Session-Token<token>

Kratos session JWT token. Alternative to cookie authentication for non-browser clients.

Request Body

application/json
  1. body
path*string

Bucket-wide object path. Prefix with the tenant ID or another unique namespace.

Response Body

OK

application/json
  1. response
message*string
Example Request
curl -X DELETE 'https://api.omnibase.tech/api/v1/storage/object' \  -H 'Content-Type: application/json' \  -d '{  "path": "tenants/00000000-0000-4000-8000-000000000000/avatars/me.png"}'
Example Response
{  "message": "string"}