Open Powershell Run as Administrator. Browse to the Location to be Safe.
Get-ChildItem -Recurse | Remove-Item -recurse -Confirm:$false -Force –verbose
Now File Structure under Junk folder and its subfolders is Removed without any confirmation.
If you get into this below error –
The Specified Path , File Name or Both are too long. The Fully qualified file name must be less than 260 Characters, and the directory name must be less than 248 Characters
Now in this case use Robocopy nothing need to be installed on Latest windows Machines.
Create a Empty Folder
Now ask robocopy to Mirror this empty folder to the destination folder.
robocopy /MIR c:\S C:\Junk
Now File Structure under Junk folder and its subfolders is Removed without any confirmation.