Documentation navigation

Buckets

Delete a bucket

DELETE/storage/buckets/{bucketName}

Delete a bucket permanently. This operation will fail if the bucket is not empty. set forceFlush to true to delete a bucket and everything in it.

Parameters

DeleteBucketParams
bucketNamestring
Bucket name.
forceFlush?boolean
Delete active objects and multipart uploads before deleting the bucket.
signal?AbortSignal
Abort signal for cancelling the delete request.

Returns

bucketNamestring
Deleted bucket name.
deletedboolean
Whether the bucket was deleted.