Adam Hughes
Adam Hughes

Reputation: 16309

S3 buckets are corrupted, how to remove?

Created two buckets in S3 using a python script, but the script was terminated a few seconds into it, seemingly resulting in a bad bucket state. The same code has created similar buckets before without issue and they appear in the correct region.

enter image description here

Trying to delete through AWS dashboard yields the following error.

enter image description here

Furthermore, boto3 access via list_buckets does not include these in the list. Any idea what's going on?

Upvotes: 0

Views: 469

Answers (2)

Adam Hughes
Adam Hughes

Reputation: 16309

Waited 6 hours or so and it corrected it5self as @John Rotenstein said may happen in comment

Upvotes: 1

sergen karaçay
sergen karaçay

Reputation: 33

Maybe this piece of code works, if you run this on cli. aws s3api delete-bucket --bucket-name --force

Upvotes: 2

Related Questions