I have a lot of files on my google drive. I would like to delete files older than 7 days in the directory.
Is there any way to do this?
I will be grateful for the support. Thanks
I have a lot of files on my google drive. I would like to delete files older than 7 days in the directory.
Is there any way to do this?
I will be grateful for the support. Thanks
@igor_andreev- it works
Option at the end --dry-run
is only for preview reason, so If you are sure to delete files use:
rclone delete remote:dir --min-age 8d -v
Thank you
Yep. Before launching potentially destructive commands(delete, sync etc.), it is always better to check them with the --dry-run.
@igor_andreev, thanks for clarification.
Could you advise if there is any possibility to permamently remove files without trash?
Google Drive?
https://rclone.org/drive/
Look at "Deleting files"(--drive-use-trash=false) or " Emptying trash". Rclone has a very good manual...
@igor_andreev, I am learning Ubuntu recently, so my knolowledge needs to be improved, especially how to read manuals
Thanks a lot for your effort.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.