how to delete folder from window powershell code example
Example 1: powershell delete folder
Remove-Item 'D:\temp\Test Folder1'
Example 2: 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.