How to delete x days older folder
Here is a PowerShell script which can delete X days older folder. Can someone please write a script for WinSCP?
Get-ChildItem "folder path" -Recurse | Where-Object {($_.LastWriteTime -lt (Get-Date).AddDays(-1))} | Remove-Item -Recurse -Force -Confirm:$false