Is there a easy way to delete files to the recycle bin that are older than X days?
Or to keep files within x number of days - Say I have files with modified dates between 01-01-17 and 01-03-17 (Jan to March UK Dates) and I want to delete all the ones in Jan and Feb how would I do it?
Leo
February 8, 2017, 3:44pm
2
Turn on the delete filter:
Select what you want to delete and click Delete as normal.
Define the filter.
The filter should match what you want to delete.
The filter should not match what you do not want to delete.
This filter will delete files older than 10 days:
Or you could do something like this:
Or this:
More detail: Filtered Operations
As always, try in a test folder first, in case you delete the wrong things.
1 Like
Been thinking - Is there a way you could script using the Delete Filter so you can put it on a button?
Would be a lot easier I think once its been written.
Leo
February 10, 2017, 7:20am
4
Yes, you can save filters in Preferences / File Operations / Filters and then use them in buttons/commands.
See the delete command 's FILTER argument.
Say you make a filter for files between two dates Is there any way to specify what those two dates can be as passed by a DELETE Filter command say:
DELETE FILTER dates "01/01/2017" to "01/02/2017"
?
Leo
February 10, 2017, 7:55am
6
Not currently (although we have something planned for the medium/longer term).
At the moment it has to be defined in the filter.
The filter can use relative dates, so you could do "1-2 months old" or similar rather than pick two static dates.
For more advanced filtering within commands, scripts can do just about anything, but it gets more complicated.
Ah cool Can't wait for that upgrade..
Yeah not really a programmer as such so scripting might be a bit out of my league...
How would define a filter like that then?
Leo
February 10, 2017, 8:38am
8
Just click on the different parts of the filter and you can select various options, like relative dates.