how to delete folder in powershell code example
Example 1: how to delete a file using powershell
Remove-Item "path/filename.extension"
Example 2: powershell delete folder
Remove-Item 'D:\temp\Test Folder1'
Example 3: remove directory powershell
rmdir <directory_name>
# If you have something (files, other directories etc) in the directory you'll be asked if you want to delete those too.