Answers for "powershell delete files older than 15 days"

1

powershell delete files older than 15 days

Get-ChildItem "C:\temp" -Recurse -File | Where CreationTime -lt  (Get-Date).AddDays(-15)  | Remove-Item -Force
Posted by: Guest on November-24-2020

Code answers related to "powershell delete files older than 15 days"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language