How to quietly remove a directory with content in PowerShell

hsz picture hsz · Oct 26, 2011 · Viewed 296.8k times · Source

Using PowerShell, is it possible to remove some directory that contains files without prompting to confirm action?

Answer

Michael Price picture Michael Price · Oct 26, 2011
Remove-Item -LiteralPath "foldertodelete" -Force -Recurse