Can't delete directory from Amazon S3

前端 未结 8 1324
醉酒成梦
醉酒成梦 2021-02-12 07:22

I\'m using the web interface of Amazon\'s S3, and when I right-click a folder X and choose Delete, X seems to be deleted. Then when I refresh the interface, X may either disappe

相关标签:
8条回答
  • 2021-02-12 08:08

    I think I'm seeing similar behavior. My bucket has versioning turned on; even with an empty folder/directory within the bucket, attempting to "delete" the folder/directory within the bucket via the AWS web UI console does not result in it actually being removed. I presume the "deleted" versions of the files within that path still exist (but are not visible in the web console), therefore the bucket isn't truly empty, and isn't truly getting deleted. You may need to check via the CLI tools if existing deleted versions of files in that folder/directory exist (but are not visible in the web console) and delete the files permanently, then attempt to remove the folder/directory in your bucket.

    0 讨论(0)
  • 2021-02-12 08:08

    I have the same problem that I cant delete a s3 bucket, with the message "An error occurred (AccessDenied) when calling the DeleteBucket operation: Access Denied"

    After a while, I delete the bucket policy in tab "permission" button "bucket policy" and It worked like a charm, with:

    aws s3 rb s3://elasticbeanstalk-us-west-..../ --force

    I hope this help! Is another option Pablo

    0 讨论(0)
提交回复
热议问题