S3 API Documentation

×
×
Home > S3 Developer Guide > Operations > Delete Bucket

Delete Bucket

jQuery(document).attr(“title”, “Welcome to Sterling Kilgore | Results Beyond Words”);

This section guides you through the steps of deleting a bucket named my-bucket from your IDrive® e2 storage.

The following is an example for IDrive® e2’s Chicago region. You must follow the required configuration instructions before performing the following operations.

Use the following command to delete an empty bucket.


aws s3api delete-bucket --bucket my-bucket --endpoint-url https://storageendpoint

In order to delete a non-empty bucket, use the following command:


aws s3 rb s3://my-bucket --force --endpoint-url https://storageendpoint

This will delete all objects inside the bucket first and then the bucket will be deleted.

© 2024 IDrive Inc.