delete all contents of a folder powershell force code example
Example 1: powershell delete all files with specific extension in sub directories
Get-ChildItem * -Include *.csv -Recurse | Remove-Item
Example 2: powershell delete folder
Remove-Item 'D:\temp\Test Folder1'