1 Answer
- Newest
- Most votes
- Most comments
0
First you can list out the multipart uploads you have with the AWS CLI command:
# aws s3api list-multipart-uploads --bucket <Bucketname>
From that you need to obtain the key and the upload id, that use that in a second command to abort the multipart upload so that the object parts are deleted.
# aws s3api abort-multipart-upload --bucket <Bucket Name> --endpoint-url=<Bucket URL> --key <Object Key> --upload-id <Upload ID>
If you have many multipart uploads, you might create a create a script.
CLI Command Reference: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
aws s3api list-multipart-uploads --bucket <Bucketname> gives response "None None"
Relevant content
- asked 3 years ago
- asked 3 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 3 months ago
Storage lens values are reduced to reflect only current objects in that bucket after 2 days. However, CloudWatch metrics still display larger, incorrect values, including incomplete multipart values.