How should this be done?
Create an Amazon S3 Event Notification to trigger an AWS Lambda function that deletes incomplete multipart uploads.
Create an Amazon S3 lifecycle rule to abort incomplete multipart uploads so that they are deleted this time and in the future.
Use the AWS CLI to list all the multipart uploads, and abort all the incomplete uploads from the day of the event so that they are deleted.
Use the AWS Management Console to abort all the incomplete uploads from the day of the event so that they are deleted.
Explanations:
An S3 Event Notification cannot directly delete incomplete multipart uploads. While an event can trigger a Lambda function, additional logic would be needed to list and abort the uploads.
A lifecycle rule with an “AbortIncompleteMultipartUpload” action will automatically delete incomplete uploads after a specified time period, ensuring both current and future incomplete uploads are managed.
Using the AWS CLI to list and manually abort incomplete uploads is a one-time manual solution, not an automated, ongoing method to handle future occurrences.
Aborting incomplete uploads through the AWS Management Console is a manual action, not an automated solution for handling future incomplete uploads.