LoginSignup
2
2

More than 5 years have passed since last update.

s3のbucket内のファイルをまとめて消去する

Posted at

大量のログが残ってたので、s3cmdというツールを使ってまとめて削除した。

  1. AWSのMy Account/ConsoleからSecurity Credentialsに移動して、Access KeysタブからAccess Key IDSecret Access Keyをメモる
  2. http://s3sync.net/wiki から*current* versionのtar.gzを落として解凍
  3. tarを解凍したディレクトリで下記コマンドを実行
$ AWS_ACCESS_KEY_ID="Access Key IDの値" AWS_SECRET_ACCESS_KEY="Secret Access Keyの値" ruby s3cmd.rb deleteall バケット名
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2