Hanzo
OpenapiS3

Delete an empty bucket

Removes one of the caller's buckets, and only when it is already EMPTY — a bucket with objects in it answers 409 instead.

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 one of the caller's buckets, and only when it is already EMPTY — a bucket with objects in it answers 409 instead.

That refusal is deliberate rather than a limitation: this API does not cascade a delete of a tenant's objects behind a single bucket call, so emptying the bucket stays an explicit act. A bucket that does not exist is 404, and a successful delete answers 204 with no body.

A validated principal is required, and every bucket and key is resolved inside the caller's own org: physical bucket names are derived from the org, so a tenant cannot name another's storage. The operation is billed per call — the balance is checked BEFORE anything is touched, so an unfunded org is refused with nothing done, and the debit happens only after the work succeeds. Object storage that is not configured answers 503 under this subsystem's own name rather than falling through to another.

Request

1 field.

FieldInTypeRequiredDescription
bucketpathstringyes

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo s3 buckets rm <bucket>

S3 API · All Hanzo APIs · Interactive reference

How is this guide?

On this page