Before removing a bucket, it needs to be completely empty (including any versions and/or delete markers). Two important things to keep in mind:
- Deletions are usually slow on the S3 protocol, so if a bucket contains millions of objects it may take several days for the delete operation to complete.
- If the bucket has object lock it will be necessary to wait for each object's retention to expire and, if used, disable the legal hold.
You can proceed in one the following ways with the different tools specified:
Using Cubbit web console:
You can empty and remove buckets with less than 1000 objects by first emptying the bucket, then deleting it. See the GIF below for an example:
Using Veeam Backup & Replication:
You can delete the backup directly from the Veeam client. Some residual configuration objects will need to be deleted later. After completely emptying the bucket, it is necessary to remove it from any Veeam repository. Then, you will be able to delete the bucket from the Cubbit web console or any tools of your choice. For further info see:
Using AWS S3 Tools for Powershell:
You can empty and remove a bucket even if it is versioned. For further info see:
Using AWS CLI:
You can empty and remove an unversioned bucket. For further info see:
Using Rclone:
With the purge command you can empty and remove a bucket even if it is versioned. For further info see: