Hanzo
OpenapiCloudflare

Deletes an R2 bucket.

Deletes an R2 bucket.

DELETE /v1/cloudflare/r2/buckets/{bucket}

Addresshttps://api.hanzo.ai/v1/cloudflare/r2/buckets/{bucket}
MethodDELETE
Operationdelete_cloudflare_r2_buckets_by_bucket
AuthAuthorization: Bearer $HANZO_API_KEY

Deletes an R2 bucket. Requires org admin. Cloudflare refuses a bucket that still holds objects, and that refusal is relayed.

Request

1 field.

FieldInTypeRequiredDescription
bucketpathstringyesBucket is the R2 bucket name.

Response

StatusBodyMeaning
200ok

200 body — 1 field.

FieldInTypeAlwaysDescription
(body)bodyanyyes

Failure carries the platform error shape — see Errors.

Examples

hanzo cloudflare r2 buckets rm <bucket>

Cloudflare API · All Hanzo APIs · Interactive reference

How is this guide?

On this page