Remove a bucket
Learn how to remove an existing bucket.
Capabilities
`buckets=write`
Syntax
DELETE /admin/bucket?format=json HTTP/1.1
Host FULLY_QUALIFIED_DOMAIN_NAME
Request Parameters
bucket
- Description
-
The bucket to remove.
- Type
-
String
- Example
-
foo_bucket - Required
-
Yes
purge-objects
- Description
- Type
-
Boolean
- Example
- True [False]
- Required
-
No
Response Entities
None.
Special Error Responses
BucketNotEmpty
- Description
-
Attempted to delete non-empty bucket.
- Code
-
409 Conflict
ObjectRemovalFailed
- Description
-
Unable to remove objects.
- Code
-
409 Conflict