Hanzo AI
OpenapiS3

Delete buckets

Removes an EMPTY bucket and answers 204. A non-empty bucket is 409 rather than a cascade: deleting a tenant's objects behind a single bucket call is not a…

DELETE /v1/s3/buckets/{bucket}

Addresshttps://api.hanzo.ai/v1/s3/buckets/{bucket}
MethodDELETE
Operationdelete_s3_buckets_by_bucket
AuthAuthorization: Bearer $HANZO_API_KEY

Removes an EMPTY bucket and answers 204.

A non-empty bucket is 409 rather than a cascade: deleting a tenant's objects behind a single bucket call is not a thing this surface will do silently. A bucket the caller's org does not own is the same 404 an unknown name gives.

Billed per call: the balance is checked BEFORE anything is touched, so an unfunded org is refused with nothing deleted, and the debit lands only once the bucket is gone.

Request

1 field.

FieldInTypeRequiredDescription
bucketpathstringyesBucket is the bucket's friendly name, from the path.

Response

StatusBodyMeaning
204no content

Failure carries the platform error shape — see Errors.

Examples

hanzo s3 buckets rm <bucket>

S3 API · All Hanzo APIs · Interactive reference

How is this guide?

On this page