I'm trying to find the best/effective way to PURGE an S3 bucket containing hundreds of thousands of files but any command I try takes ages (hours), like : rclone purge s3:bucket --no-check-dest --no-traverse --fast-list
Is there any optimized command to achieve this simple task : destroy the S3 bucket and all it's contents?
I'm not looking for a provider specific solution, but a general S3 solution trough rclone
I use many providers for different purposes, like MinIO on local, Scaleway, OVH, Wasabi...but not Amazon.
--fast-list isn't always the fastest option, it depends on the characteristics of the data (and the server). --no-check-dest and --no-traverse has no effect when purging.
So this command may be quicker due to a higher level of concurrency:
rclone purge s3:bucket --checkers=16
If so, then try doubling the number of checkers until you reach maximum speed.
Note, it will use more API calls and therefore increase your costs.