Skip to main content
When a bucket has more than 1000 objects, it’s burdensome to empty it synchronously. The best solution is to take advantage of lifecycle rules which asynchronously operate on destination bucket. Here is a sample lifecycle rule

Sample lifecycle rule

Name that file as lifecycle.json and you can apply that to the bucket you intend to empty ---
You can verify that it’s applied correctly the following way.
Check on your bucket after 24 hours to validate it’s being cleared.