简体   繁体   English

删除 AWS S3 存储桶的技巧是什么?

[英]What is the trick to delete an AWS S3 bucket?

Trying to delete a S3 bucket in AWS via the webpage but nothing happens -- no error message, no popup, nothing.尝试通过网页删除 AWS 中的 S3 存储桶,但没有任何反应——没有错误消息,没有弹出窗口,什么也没有。 The delete screen has a standard "Type the name of the bucket to confirm deletion" message and I did type it (yes, I'm 100% sure I spelled it correctly, I've tried copy-paste, etc) but when I hit the Confirm button nothing happens.删除屏幕有一个标准的“输入存储桶的名称以确认删除”消息,我确实输入了它(是的,我 100% 确定我拼写正确,我试过复制粘贴等)但是当我点击确认按钮没有任何反应。 No error message, and the delete screen doesn't go away, etc. Nothing happens.没有错误信息,删除屏幕也不会消失,等等。没有任何反应。

On many guis, the "Confirm" button would be grayed out or change color once you successfully type the thing to be deleted, but that's not happening here -- the button appears clickable even before I type anything;在许多 gui 上,一旦您成功键入要删除的内容,“确认”按钮就会变灰或更改颜色,但这里不会发生这种情况——即使在我键入任何内容之前,该按钮也显示为可点击; but clicking it doesn't do anything either before I type my bucket or after.但是在我输入我的存储桶之前或之后点击它不会做任何事情。

Here's a screenshot (I scribbled out part of the name because that has my personal info; but I'm sure I'm typing it correctly).这是一个屏幕截图(我潦草地写下了名字的一部分,因为那有我的个人信息;但我确定我输入正确)。 Is there a trick I have to do to delete this?我有什么技巧可以删除它吗? 在此处输入图片说明

UPDATE: I tried creating a new different bucket and then was able to delete that with no problem.更新:我尝试创建一个新的不同存储桶,然后可以毫无问题地删除它。 But I still can't delete this one.但是我还是不能删除这个。 I think maybe this bucket is somehow in-use or orphaned or something but I can't find any trace of it being used anywhere else in the AWS console and there's no error message (or any action at all) when I click the confirm button, so I don't know why AWS is refusing to do anything.我想这个存储桶可能以某种方式在使用中或孤立或其他东西,但我无法在 AWS 控制台的其他任何地方找到它被使用的任何痕迹,并且当我单击确认按钮时没有错误消息(或根本没有任何操作) ,所以我不知道为什么 AWS 拒绝做任何事情。 How can I 100% force nuke this bucket away?我怎样才能 100% 强制核爆这个桶?

FURTHER UPDATE: Clicking on that bucket on the webpage says "Error Data not found" which makes me think something got orphaned here.进一步更新:点击网页上的那个存储桶会显示“找不到错误数据”,这让我觉得这里有些东西变得孤立了。 But the bucket is still showing up, so how can I force delete it?但是存储桶仍然出现,那么我该如何强制删除它呢?

在此处输入图片说明

This appears to be a delay on Amazon's side.这似乎是亚马逊方面的延迟。 I waited for the next day and then the bucket disappeared on its own.我等了第二天,然后水桶自己消失了。 So I guess Amazon's cache just had to refresh or something.所以我猜亚马逊的缓存只需要刷新什么的。

Make sure your bucket is empty and no policy is associated with it.确保您的存储桶为空并且没有与之关联的策略。

Also, This is what had worked for me.此外,这对我有用。 I didn't have versioning enabled on the bucket.我没有在存储桶上启用版本控制。 When you delete an object from the s3 bucket, it puts a 'delete marker' on that object and hides it from the listing.当您从 s3 存储桶中删除一个对象时,它会在该对象上放置一个“删除标记”并将其从列表中隐藏。 When you click the 'show' version button you will see your deleted objects with the delete marker.当您单击“显示”版本按钮时,您将看到带有删除标记的已删除对象。 Select this object (with delete marker) and delete it again.选择这个对象(带有删除标记)并再次删除它。 This is a permanent delete.这是永久删除。 Now your object is really gone and your bucket is really empty.现在你的对象真的不见了,你的桶真的是空的。 After this, I was able to delete my bucket.在此之后,我能够删除我的存储桶。

I guess, versioning=true only means that s3 will create versions of the object if you upload with the same name.我猜, versioning=true 仅意味着如果您使用相同的名称上传,s3 将创建对象的版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM