Submitted By: Richard Siddaway

Windows PowerShell script that deletes all the subfolders in a specified folder.

PowerShell
Edit|Remove
## removes all subfolders of a given folder


[System.IO.Directory]::GetDirectories("c:\test2") |

foreach {


remove-item $_  -Verbose


}