This forum is closed. Thank you for your contributions.
How to delete the zip files 6 days old
I have used the below command, however its not working
Get-ChildItem -Path $dst_zip -Force | Where-Object { !$_.PSIsContainer -and $_.CreationTime -lt $limit } | Remove-Item -Force
How is it not working?
$limit = [datetime]::Today.AddDays(-30) Get-ChildItem -Path $dst_zip -Include *.zip -File -Force | Where-Object {$_.CreationTime -lt $limit } | Remove-Item -Force
\_(ツ)_/