#ps delete files -x days sffatcat · Posted on May 2, 2017May 2, 2017 Get-ChildItem -path “C:\TEMP” -Recurse |where-object {$_.CreationTime -lt (get-date).AddDays(-5)} |Remove-Item