powershell delete a directory 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'
Remove-Item "path/filename.extension"
Remove-Item 'D:\temp\Test Folder1'