Your Search Bar For Shrewd Tips

How Do I Clear Rdp History?


Remote Desktop Connection keeps a list of computers you have connected to, which can make it easier to reconnect later. If you share your Windows computer or want to remove an old server name, you may be wondering how to clear RDP history. The process usually involves clearing entries from the Windows Registry and, if needed, removing saved Remote Desktop files or credentials. These items are stored separately, so deleting one does not necessarily remove the others.

This guide explains how to clear RDP history in Windows 11 and Windows 10, remove a specific connection or the entire list, delete saved sign-in details, and check for other traces on your computer. Before making changes, confirm you are working on your own device or have permission to manage it. On a work or school computer, follow your organization’s IT policies.

What RDP History Includes

RDP history usually means the computer names or IP addresses shown in the Remote Desktop Connection app, also known as mstsc.exe. Windows stores these recent connection entries in your user account’s Registry. It may also keep connection settings in a file called Default.rdp, while saved usernames and passwords are managed separately through Credential Manager.

These are different kinds of information. Clearing the recent-computer list does not automatically delete saved credentials, and deleting credentials does not necessarily remove the computer name from the RDP history. You can remove only the information you want, or follow each relevant section below for a more complete cleanup.

  • Recent connection names: The computer names and IP addresses displayed in the Remote Desktop Connection list.
  • Connection settings: Options saved in the Default.rdp file, such as display or resource preferences.
  • Saved credentials: Usernames and passwords Windows may offer when connecting to a remote computer.
  • Other recent-item records: Windows may show shortcuts or recent items in places such as File Explorer or the Start menu.

Before You Clear RDP History

Registry changes affect Windows configuration, so take care before editing the Registry. If you are unfamiliar with Registry Editor, read the steps first and make a backup of the relevant key. Do not remove unrelated Registry entries. The instructions below are for the current Windows user; another user account on the same computer may have a separate RDP history.

  • Make sure you are signed into the Windows account whose RDP history you want to clear.
  • Close Remote Desktop Connection before changing its history.
  • If you might need the existing entries, write down the server names or export the Registry key as a backup.
  • On a managed computer, check with your administrator before removing credentials or changing settings.

How to Clear All RDP History in the Registry

The standard Remote Desktop Connection client stores recent server names under your user profile in the Registry. The relevant location is HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default. The values in this key typically hold the recent computer names, while MRUList tracks their order.

  1. Press Windows + R, type regedit, and press Enter.
  2. If Windows asks for permission, select Yes to open Registry Editor.
  3. In the Registry Editor address bar, paste HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default and press Enter. If there is no address bar, browse to the folders in the left-hand pane.
  4. Before editing, right-click the Default key in the left pane and choose Export. Save the backup somewhere you can find it.
  5. In the right-hand pane, remove the recent-connection values, such as MRU0, MRU1, and MRUList. Select only the values in the Default key, then right-click and choose Delete.
  6. To remove additional per-server information stored by the classic client, return to HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client. If a Servers subkey exists, right-click it and select Delete.
  7. Close Registry Editor and reopen Remote Desktop Connection to check the recent-computer list.

Deleting the Servers subkey removes data associated with saved server entries, which can include a username hint. It does not delete the remote computers themselves or remove records kept on those computers. If you are unsure whether you need that information, clear the Default history values first and leave the Servers key in place.

How to Remove One RDP History Entry

If you want to keep most of your RDP history, remove only the entry for a particular computer. Open Registry Editor and go to HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default. In the right-hand pane, compare the data shown for each value, such as MRU0 or MRU1, with the computer name or IP address you want to remove.

Once you identify the matching value, right-click that value and select Delete. Avoid deleting a value just because its name contains a particular number; check its data to make sure it corresponds to the right computer. The MRUList value maintains the order of recent entries. If you edit it manually, be cautious: an incorrect entry can make the list behave unexpectedly. For a simple, reliable reset, clearing all the recent-history values is often easier than editing the order by hand.

After making the change, close and reopen Remote Desktop Connection. If the computer name still appears, check whether it is being suggested by another Windows feature or by a different Remote Desktop client rather than the classic mstsc.exe history.

Delete the Default.rdp File

The classic Remote Desktop Connection client may save connection preferences in Default.rdp. This file is separate from the Registry list of recent computer names. Deleting it can reset saved default connection settings, but it is not a substitute for clearing the Registry history.

  1. Close Remote Desktop Connection.
  2. Open File Explorer and enter %USERPROFILE%\Documents in the address bar.
  3. Look for a file named Default.rdp. Depending on your File Explorer settings, you may need to show hidden items.
  4. If you want to keep a copy, move the file to another folder. Otherwise, delete it.
  5. Open Remote Desktop Connection again. Windows may create a new Default.rdp file when you use the app.

If you cannot find the file, that is not necessarily a problem. It may not have been created, or your Windows setup may store connection settings differently. Do not delete other files from Documents just because their names resemble an RDP connection.

Remove Saved RDP Credentials

Saved sign-in details are separate from RDP history. To remove a stored username or password, open Control Panel, select User Accounts, and then choose Credential Manager. Select Windows Credentials and look for an entry associated with the remote computer. RDP credentials often have a target beginning with TERMSRV/, followed by a computer name or IP address.

Expand the relevant entry and choose Remove if you no longer want Windows to use that saved credential. Removing a credential may mean you need to enter your username and password the next time you connect. It does not erase the computer name from the recent-connection list, so clear the Registry history separately if that is also your goal.

You can also use the Windows command-line utility cmdkey to remove a specific stored credential. For example, in Command Prompt, enter cmdkey /delete:TERMSRV/server-name, replacing server-name with the target as it appears in Credential Manager. Check the target carefully before running the command. If you are not sure how a credential is named, use Credential Manager’s graphical interface instead.

Check Other Windows Recent Items

Depending on how you launch Remote Desktop, Windows may display related items outside the classic RDP history list. A shortcut may appear in the Start menu or on the taskbar, or a connection file may be listed among recent files. Removing a shortcut or recent-item reference can clean up those locations, but it does not necessarily remove Registry entries or saved credentials.

For a general File Explorer cleanup, open File Explorer, select the three-dot menu, choose Options, and use the privacy controls to clear its history. The exact labels can vary by Windows version. This clears File Explorer’s recent activity list; it should not be treated as a complete method for clearing RDP history.

If you use a different Remote Desktop app, such as a newer client installed from Microsoft Store or an organization-provided remote access application, its connection list may be stored separately. Review that app’s settings or account options. The Registry steps for mstsc.exe may not clear the history of other clients.

Does Clearing RDP History Remove All Evidence?

No. Clearing RDP history removes local entries from the locations you changed, but it does not erase every record of a remote connection. The remote computer or a network service may keep its own security, access, or audit logs. An employer or school may also use centralized monitoring. Local Windows event logs and other system records are separate from the recent-computer list.

Likewise, removing an RDP entry does not delete files, accounts, or activity on the remote computer. It only changes what is stored or shown on your local Windows profile. If your goal is to protect a shared computer, sign out of your Windows account when finished and follow your organization’s privacy and security rules.

Troubleshooting RDP History That Returns

If a computer name reappears after you clear it, first confirm that you edited the Registry for the correct Windows user. Each account has its own HKEY_CURRENT_USER history. Also verify that Remote Desktop Connection was closed while you made the change, then reopen it and check the list again.

  • Check the correct client: The classic Remote Desktop Connection app and other RDP apps may keep separate lists.
  • Look for a saved shortcut: A pinned shortcut or .rdp file can continue to show a connection even after the recent list is cleared.
  • Check credentials separately: A stored TERMSRV credential can remain even when the computer name is gone.
  • Consider account management: Work or school policies, profile synchronization, or management tools may restore settings.
  • Restart Windows if needed: A restart can help refresh the user interface, but it will not remove data you did not clear.

Do not repeatedly delete broad Registry areas to solve a single lingering shortcut. Identify where the name is appearing first, then remove only the corresponding item. If the history is controlled by your organization, contact IT rather than trying to bypass its management settings.

Conclusion

To clear RDP history in Windows, remove the recent connection values from HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default. For a more complete cleanup, check the Servers subkey, remove an unwanted Default.rdp file, and delete saved TERMSRV credentials from Credential Manager if necessary. These steps clear local information in the locations you choose, but they do not remove logs or records maintained by a remote computer or organization. Back up the Registry key first, make only the changes you need, and verify the result by reopening the Remote Desktop client.


Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.

Shrewdnia

Shrewdnia

Shrewdnia is a destination for curious minds seeking clarity, knowledge, and informed perspectives. Through insightful articles and practical guides our passionate team explores a wide range of topics designed to help readers understand the world around them, make smarter decisions, and stay informed in an ever-changing landscape.


💡 Every question sparks discovery, and every perspective enriches the conversation. Share your thoughts and insights in the comments 👇

Back to blog

Leave a comment

JOIN THE SHREWDNIA COMMUNITY FORUM

What do you think?

Have an opinion, experience, or question about this topic? Join the Shrewdnia Forum and share your thoughts with other readers.

Join the Forum →