Skip to content

Conversation

BastLeblanc
Copy link

bucket-remove-force fails if the bucket contains versions.

This adds delete of each object versions, can be very long so I added a small counter display.

Example of run:

bucket-remove-force mybuckettobetrashed
You are about to delete all objects from and remove the following buckets:
mybuckettobetrashed  2023-08-11T14:24:00+00:00
Are you sure you want to continue? y
remove_bucket failed: s3://mybuckettobetrashed An error occurred (BucketNotEmpty) when calling the DeleteBucket operation: The bucket you tried to delete is not empty. You must delete all versions in the bucket.
Remove bucket failed, trying to delete object versions first (this may take a while)...
Removing all versions from mybuckettobetrashed
removing files
93 out of 1761

@BastLeblanc BastLeblanc requested a review from mbailey as a code owner November 10, 2023 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant