How to remove the folder recursively

To remove the folder, use the following statements:

Remove-Item $folderPath -Force  -Recurse -ErrorAction SilentlyContinue

Where $folderPath is the folder path. For example:

Remove-Item .\spdlog\ -Force  -Recurse -ErrorAction SilentlyContinue

Related

Created 2024-12-13T13:03:07+08:00 · Edit