Cleaning Up a 600k+ Object Versioned S3 Bucket Using Lifecycle Policies
Deleting a versioned S3 bucket with 600k+ objects using aws s3 rm --recursive can become painfully slow, especially when delete markers and old versions remain behind. This write-up documents using S3 lifecycle policies instead to let AWS handle the cleanup internally.