I am trying to get the below PowerShell script to work using Task Scheduler. The problem is that it wont delete any files.
When I run it manually it needs a confirma
It says
Recurse parameter was not specified. If you continue, all children will be removed with the item. Are you sure you want to continue?
Try: Remove-Item ./folderToDelete -Force -Recurse
Remove-Item ./folderToDelete -Force -Recurse