[Feature Request] Optional settings to provide protection from accidental mass deleting of folders on remote file storages

Hey rclone-community,

with the advent of LLM controlling terminals and filesystems i think that introducing some more granular security features into backend and/or mount-options to prevent "automatical" or also human accidental mass deletion of files and folders in remote mounts would be beneficial.

But it is not only about AI. I always had this "bad feeling" of slipping with the mouse and accidentally deleting terabyte of data while doing some manual operations with mounts.

So here some proposals for additional mounting flags and/or backend-options:

-> Allow folder deletion in mount only after a certain depth
With this mount-option set it would be possible to allow or disallow deletion folders more in granular per mount.
For example the default setting is value 0 which allows deleting of every folder in the root folder.
A value of 1 would only allow deleting subfolders of those folders in the root.
A value of 2 would only allow to delete subfolders of those subfolders of those folders in root.
And so on.

-> Allow only deletion of non-empty folders
With this mount-option set it would not be possible to delete non-empty folders without deleting the corresponding other files and folders in it.

-> Mass deletion security threshold
This would maybe be beneficial as backend-option.
When setting this option with a value of 500G for example then a operation that deletes files and folders from a remote mount would basically have a counter that counts the amount of data deleted in a certain amount of time and if in this operation 500G is reached it stops so that the user (or the script or AI) has to start another deletion for another 500G in the next time window.

If someone has other ideas or another proposal to achieve this without implementing this is a feature in rclone, please comment. :slight_smile: