What's the fastest way vers delete a large folder dans Windows?

What’s the fastest way to delete a large folder in Windows?

Using Windows invite de commandes:

rmdir /s /q folder

Using Powershell:

powershell -Command "Remove-Item -LiteralPath 'folder' -Force -Recurse"

Notez que in more cases del and rmdir wil leave you with leftover files, where Powershell manages to delete the files.