A Microsoft Powershell command for the brave / foolish-of-heart!
This - I hope:
- looks through all the sub-folders of your present working directory:
- finds all files that have the extension “.rdata”
- that haven’t been updated since 2024-01-01
- and (permanently) deletes them
Get-ChildItem -Recurse -Include *.rdata | Where-Object {$_.LastWriteTime -lt '2024-01-01'} | Remove-Item -Force
Of course you can change the file extensions and dates of relevance to your own needs.
This appears to work for me on the Microsoft Powershell that’s pre-installed with Windows 10. Powershell itself though is available for several other operating systems. Definitely no guarantees from me though that it’s correct and/or won’t destroy your computer.