If you want to recursively delete a directory/folder using PowerShell, then you have 2 options.

Option 1 – With LiteralPath and Force

1
Remove-Item -LiteralPath "myFolder" -Force -Recurse

Option 2 – With implicit and Recurse

1
Remove-Item myFolder/* -Recurse