Powershell – How to quietly remove a directory with content in PowerShell

directorypowershell

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

Best Answer

Remove-Item -LiteralPath "foldertodelete" -Force -Recurse