Abort incomplete S3 multipart uploads
npm install abort-incomplete-multipartThis tool lists all of your Amazon S3 incomplete multipart uploads, and allows you to
abort them.
This is a Node.js application, so if you don't have it installed already, install node and
npm:
``bash`Ubuntu
apt-get install nodejs nodejs-legacy npm
Now you can fetch and install abort-incomplete-multipart from NPM:
`bash`
npm install -g abort-incomplete-multipart
Or if you download this repository, you can install that version instead from the
repository root:
`bash`
npm link
Now it'll be on your PATH, so you can run it like so:
`bash`
abort-incomplete-multipart --help
First, configure your AWS credentials.
If you're running this tool within an EC2 instance with a role that grants access
to S3, the role will be used automatically without you having to do anything.
Now you can just run:
`bash`
abort-incomplete-multipart
In order to list all of your incomplete uploads in every bucket. If you want to
abort all of those uploads, pass the "--abort" option:
`bash`
abort-incomplete-multipart --abort
Here's the complete --help page:
`
Options
--bucket name Only find uploads in this bucket (optional)
--prefix key Only find uploads with this key prefix (optional)
--abort Abort the uploads that are found (after prompt)
--force Don't prompt to confirm abortion
``