Skip to main content
DELETE
/
object-storage
/
{id}
/
objects
Delete objects
curl --request DELETE \
  --url https://api.sevalla.com/v3/object-storage/{id}/objects \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "keys": [
    "images/photo.jpg",
    "docs/readme.txt"
  ]
}
'
{
  "message": "Bad request",
  "status": 400,
  "data": {
    "code": "err-abc-123",
    "message": "If you need assistance, please contact support and provide this error code."
  }
}

Authorizations

Authorization
string
header
required

API key authentication. Pass your API key as a Bearer token in the Authorization header.

Path Parameters

id
string<uuid>
required

Object storage bucket identifier

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Example:

"fb5e5168-4281-4bec-94c5-0d1584e9e657"

Body

application/json
keys
string[]
required

Object keys to delete. Maximum 1000 keys per request.

Required array length: 1 - 1000 elements
Example:
["images/photo.jpg", "docs/readme.txt"]

Response

Objects deleted successfully