How do I delete all the files in a bucket without deleting the root bucket?

I can use rclone purge ... to delete all the files in a bucket + the bucket itself. How can I just delete all the files in a bucket while still leaving the bucket around?

welcome to the forum,

might depend on the storage system and if it supports the purge api call.

as you mentioned bucket,
with S3, there is no native purge, it is just a slow recursive delete.
so if that is the case, might use rclone delete.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.