清除并删除S3存储桶

时间:2014-03-01 19:20:11

标签: ruby-on-rails ruby amazon-web-services amazon-s3

我正在尝试清除和删除S3存储桶。我有权访问并验证我可以从桶中删除单个对象。我正在使用aws-sdk-ruby。

我在存储桶上调用!delete并收到以下错误:

[AWS S3 400 0.681157 0 retries] list_object_versions(:bucket_name=>"filepicker_sd_output/5CVImJfOTJmVUIlCzC1g_bigbird/thumbnails",:max_keys=>1000) AWS::S3::Errors::InvalidRequest There is no such thing as the ?versions sub-resource for a key

AWS::S3::Errors::InvalidRequest: There is no such thing as the ?versions sub-resource for a key

以下是我正在使用的方法:https://github.com/aws/aws-sdk-ruby/blob/master/lib/aws/s3/bucket.rb#L476

这甚至意味着什么?

1 个答案:

答案 0 :(得分:0)

我意识到我不应该想要删除存储桶,我真的需要关注具有特定前缀的对象并删除它们。