If you use Remote Desktop Connection on Windows, the app may remember the computers you have connected to. That history can make it quicker to reconnect, but it may also reveal server names, IP addresses, or usernames to someone who uses the same computer. If you are wondering how to clear RDP connection history, you can remove the saved entries from Windows without changing anything on the remote computer.
This guide explains how to clear the connection list in the classic Windows Remote Desktop Connection app, remove saved credentials, and check for related shortcuts or files. It covers Windows 10 and Windows 11. Before changing the registry, read the safety notes and back up the relevant keys.
What Is RDP Connection History?
RDP stands for Remote Desktop Protocol. On Windows, the built-in classic client is called Remote Desktop Connection, and you can open it by searching for Remote Desktop Connection or running mstsc. Its connection history can appear in the Computer field’s drop-down list and may include previously used computer names or IP addresses.
Windows commonly stores this classic client’s history in the current user’s registry, under HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client. The Servers subkey holds information associated with individual remote computers, while the Default subkey can contain the recent-address list. The exact entries may vary depending on your Windows version and how you connect.
Connection history is not the same as saved passwords, downloaded Remote Desktop files, or records on the remote computer. Clearing one does not automatically clear the others. If your goal is privacy, check each relevant place.
Before You Clear the RDP History
Make sure you are signed in to the Windows account whose Remote Desktop history you want to remove. The steps below affect that account’s local settings, not every user profile on the computer. If you share a device, each Windows account may have its own history.
Registry editing is generally straightforward when you follow the exact paths, but deleting the wrong key can affect other settings. Close Remote Desktop Connection first. If you want a backup, open Registry Editor, browse to the key named Terminal Server Client, right-click it, choose Export, and save the backup file somewhere safe. Do not delete the parent key or unrelated registry entries.
How to Clear RDP Connection History Using Registry Editor
These steps remove the classic Remote Desktop Connection client’s saved server entries and recent-address list. You can remove both to clear the history as thoroughly as possible.
- Press Windows + R, type
regedit, and press Enter. Approve the User Account Control prompt if it appears. - In Registry Editor, navigate to
HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client. - To remove saved entries for individual computers, right-click the
Serverssubkey and choose Delete. Confirm the deletion. - To remove the recent-address list, right-click the
Defaultsubkey and choose Delete. Confirm the deletion. - Close Registry Editor, then open Remote Desktop Connection again and check the Computer drop-down list.
Windows or the Remote Desktop client may recreate these subkeys when you connect to another computer. That is normal: new connections can be added to the history again. If you only want to remove one computer, open Servers, find the subkey named for that computer, and delete only that subkey. You can also inspect the values under Default and remove the matching recent entry, but be careful not to delete unrelated values.
Clear RDP History with Command Prompt
If you are comfortable using the command line, you can remove the same two registry subkeys without opening Registry Editor. Open Command Prompt as the same Windows user whose history you want to clear, then run:
reg delete "HKCU\Software\Microsoft\Terminal Server Client\Servers" /f
reg delete "HKCU\Software\Microsoft\Terminal Server Client\Default" /f
Each command deletes only the named subkey, not the entire Terminal Server Client parent key. If Windows reports that a key cannot be found, it may already be absent. Close and reopen Remote Desktop Connection to confirm the result.
Remove Saved Remote Desktop Credentials
Clearing the RDP connection history does not necessarily remove saved usernames or passwords. Windows may keep Remote Desktop credentials in Credential Manager. To check and remove them:
- Open the Start menu and search for Credential Manager.
- Select Windows Credentials.
- Look for credentials associated with the computer name or address. Remote Desktop entries may be labeled with a target such as
TERMSRV/server-name. - Expand the relevant entry and choose Remove if you no longer want Windows to retain it.
Only remove credentials you recognize and no longer need. You may be asked to enter your username and password the next time you connect. A work or school computer may also use managed credentials or policies, so check with your IT administrator before removing an entry you rely on.
Check for RDP Files and Recent Shortcuts
A saved .rdp file is separate from the history shown in the classic client. These files can contain connection settings and may identify a remote computer. If you have downloaded or created one, search File Explorer for *.rdp and review the results. Delete only files you no longer need; removing an RDP file does not erase the registry history or saved credentials.
You may also see Remote Desktop shortcuts in the Start menu, taskbar, or File Explorer’s recent-items area. Remove a shortcut or recent item using the options available in that location. These are convenience links, not the same data as the classic client’s registry history. The file Default.rdp, if present in your user profile, stores default client settings; it is not generally the main list of recent servers. Avoid deleting it unless you specifically want to reset those settings.
What If RDP History Still Appears?
If a computer name remains visible after clearing the registry keys, first confirm that you made the changes in the correct Windows user account. Then close every Remote Desktop Connection window and reopen the app. A pinned shortcut, saved .rdp file, or a different Remote Desktop app may be showing the name instead.
Windows 10 and Windows 11 can offer more than one Remote Desktop experience, including the classic mstsc client and newer Microsoft Remote Desktop or Windows App experiences. Their saved connections may be stored separately. If you use a different app, open its connection list and remove the saved PC there. The classic client’s registry steps may not clear data stored by another app, a work account, or an organization-managed configuration.
If the registry keys reappear immediately, another connection or management process may be writing them again. Check whether Remote Desktop Connection is still open, whether a script or company policy is restoring settings, and whether you have reconnected to the server since clearing the list.
Does Clearing RDP History Delete Remote Logs?
No. Removing connection history from your Windows computer only clears local records covered by the steps you performed. It does not delete sign-in records, security logs, or audit information stored on the remote computer, a domain controller, a VPN, or a company monitoring system. Administrators may retain connection records according to workplace policy.
Similarly, clearing the local list does not make a connection anonymous. It is a way to remove saved information from your own Windows profile, not a way to erase evidence held elsewhere. If you are using a managed device, follow your organization’s data and security rules.
Frequently Asked Questions
Can I clear just one RDP connection?
Yes. In Registry Editor, remove only the matching server subkey under Servers, and remove the corresponding recent-address value under Default if it is present. Export the parent key first if you are unsure which entry to change.
Will clearing RDP history disconnect me?
No. Removing saved history does not end an active remote session. Close the session separately if you want to disconnect. Clearing saved credentials may mean you need to sign in again on your next connection.
Does this work for all Windows users?
No. The registry path begins with HKEY_CURRENT_USER, so it applies to the account currently signed in. Repeat the process from each user account if appropriate and if you have permission.
Conclusion
To clear RDP connection history in the classic Windows Remote Desktop Connection app, remove the Servers and Default subkeys under HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client. Back up the registry first, close the client while making changes, and remove saved credentials separately through Credential Manager if needed. Also check for RDP files, shortcuts, and history in any other Remote Desktop app you use. These steps clear local information; they do not erase logs stored on a remote computer or managed network.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.