Re: looks promising
Recent versions of WinSCP support modification-time-based file masks:
https://winscp.net/eng/docs/file_mask#size_time
https://winscp.net/eng/docs/file_mask#size_time
Assuming your remote box is unix/Linux/OSX the following ought to workfind /path/to/your/dir/tree -atime +XXX -exec rm {}\;
-atime +XXX -exec rmdir -rf {}\
I need to know the syntax for days instead of time and what is the -XXX
reference?
find /path/to/your/dir/tree -atime +XXX -exec rm {}\;
-f
argument with rm
to avoid problems with it trying to run interactively.
find
is recursive so it will also include directories below the one you indicate and I think it follows links.