Delete saved RDP credentials from Windows 10 Credentials Manager, using cmdkey

Execute the following command in an elevated `cmd.exe` command-prompt terminal to quickly delete all saved Remote Desktop credentials from your Windows 10 Credentials Manager
Published on Friday, 16 April 2021

Start cmd as an Administrator

Run cmd as administrator

and to quickly delete all saved Remote Desktop credentials from your Windows 10 Credentials Manager, execute the following:

For /F "tokens=1,2 delims= " %G in ('cmdkey /list ^| findstr "target=TERMSRV"') do cmdkey /delete %H