how to force delete a file windows 10 powershell code example Example: powershell remove folder and contents Remove-Item -LiteralPath "foldertodelete" -Force -Recurse