If Remote Desktop Protocol (RDP) is showing an old image, displaying visual glitches, or you want to remove traces of previous connections from your computer, clearing the RDP cache may help. On Windows, “RDP cache” can refer to several different things: cached screen graphics, a list of recently used computers, or saved sign-in credentials. These are stored separately, so deleting one does not automatically clear the others.
This guide explains how to clear the RDP bitmap cache, remove Remote Desktop connection history, and delete saved credentials in Windows 10 and Windows 11. Follow only the steps that match what you want to remove. Clearing the graphics cache is usually safe, while changing the Windows Registry or deleting credentials should be done carefully.
What Is the RDP Cache?
Remote Desktop uses caching to make a connection feel faster. For example, the RDP client may save small pieces of screen imagery locally so it does not have to download the same visual details every time they appear. This is known as the bitmap cache. The cache is stored on the computer you use to connect, not on the remote computer.
Windows can also retain a history of Remote Desktop addresses you have entered. Separately, Windows Credential Manager may store a username or password for a remote computer. These records are often called “RDP cache” in everyday conversation, but they are not the same data.
- Bitmap cache: Temporary graphics used to improve display performance.
- Connection history: Previously entered computer names or IP addresses.
- Saved credentials: Sign-in details saved for a remote computer.
- Default RDP settings: Preferences saved by the Remote Desktop Connection client.
Removing the bitmap cache usually does not disconnect you from a remote computer or delete files on it. Clearing history or credentials can affect convenience: you may need to type the computer address or sign in again.
How to Clear the RDP Bitmap Cache in Windows
Use these steps to remove the local graphics files created by the built-in Windows Remote Desktop Connection client, also known as mstsc. The next connection may take a little longer to display some visual elements while Windows rebuilds the cache.
- Close Remote Desktop. Disconnect from any active session and close all Remote Desktop Connection windows.
- Open the cache folder. Press Windows key + R to open the Run dialog.
-
Enter the folder path. Type
%LOCALAPPDATA%\Microsoft\Terminal Server Client\Cacheand press Enter. - Delete the cache files. If the folder contains files, select them and delete them. You can leave the folder itself in place.
- Reconnect if needed. Open Remote Desktop Connection and connect to your computer as usual.
The path uses an environment variable, so you do not need to replace it with your Windows account name. If the folder is empty or does not exist, there may be no bitmap cache to remove. That can happen if you have not used the built-in client, the cache has already been cleared, or your Remote Desktop app stores its data elsewhere.
You can also remove the cache using PowerShell. First close all RDP sessions, then open PowerShell under the Windows account whose cache you want to clear and run:
Remove-Item "$env:LOCALAPPDATA\Microsoft\Terminal Server Client\Cache\*" -Force -ErrorAction SilentlyContinue
This command removes files inside the cache folder and suppresses an error if the folder or files are not present. Check the path carefully before running commands that delete files. Do not use a broad deletion command against the entire Microsoft folder.
How to Clear Recent RDP Connection History
Deleting the bitmap cache does not erase the list of computers shown in the Remote Desktop Connection client. Windows stores connection history separately. If your goal is to remove a computer name from the client’s address list, you can remove the relevant history entries from the Registry.
Registry changes can cause problems if the wrong item is edited or deleted. If you are not comfortable using Registry Editor, ask an IT administrator for help. Before making changes, consider creating a restore point or exporting the Registry key you plan to edit.
- Close Remote Desktop Connection.
- Press Windows key + R, type
regedit, and press Enter. Approve the prompt if Windows asks for permission. - Navigate to
HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default. - In the right pane, look for values named
MRU0,MRU1, and similar. These values represent recently used connection addresses. - Delete only the value or values that contain the address you want to remove. Do not delete unrelated entries.
- For saved server-specific entries, check
HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Serversand remove only the subkey for the server you want to forget.
Close Registry Editor when you are done, then reopen Remote Desktop Connection to check the history. Windows may show a different ordering after entries are removed. If you want to clear all listed addresses rather than just one, make sure you understand which entries you are removing and export the relevant key first.
Registry paths and behavior can vary slightly between Windows versions and Remote Desktop clients. The steps above apply to the built-in Windows client. A client downloaded from the Microsoft Store or another provider may manage its recent connections within the app instead.
How to Remove Saved RDP Credentials
If Windows keeps signing in with an old password, clear the saved credential for the remote computer. This is different from clearing the graphics cache or connection history. Removing a credential will not erase the remote computer’s account or change its password; it only removes a sign-in record saved on your local PC.
To remove credentials through the Windows interface:
- Open Control Panel.
- Select User Accounts, then open Credential Manager.
- Select Windows Credentials.
- Find the entry associated with the remote computer. It may include a name such as
TERMSRV/computername. - Expand the entry and select Remove, then confirm.
You can also list and remove credentials from Command Prompt. To view saved credentials, run:
cmdkey /list
To delete a credential for a particular computer, use the target name shown in the list. For example:
cmdkey /delete:TERMSRV/servername
Replace servername with the actual computer name or address used for the connection. If you connect using both a short name and a fully qualified domain name, Windows may have separate credential entries for each. Remove only the entry you intend to forget. When you connect next time, Windows should prompt you for credentials again.
Should You Delete the Default.rdp File?
The built-in Remote Desktop Connection client can create a file named Default.rdp, commonly in your Documents folder. It stores connection preferences, such as display and device settings. Deleting it is not usually necessary to clear the bitmap cache, recent connection history, or saved credentials.
If you remove Default.rdp, the client may recreate it with default settings the next time you connect. You could lose preferences you previously selected. If you are troubleshooting a problem with saved connection settings, first make a copy of the file or rename it so you can restore it if needed.
What If You Use the Remote Desktop App?
Windows has more than one Remote Desktop client. The instructions for the built-in Remote Desktop Connection program apply to mstsc. If you use a different Remote Desktop app, its cache and connection list may be managed inside the app or stored in a different location.
Check the app’s settings for options such as removing a saved PC, clearing recent connections, or signing out. Avoid deleting application data folders unless you know what they contain; doing so may remove saved workspaces, settings, or other app information as well as temporary data. If your organization manages your Remote Desktop setup, check with its IT team before resetting the app.
When Should You Clear the RDP Cache?
Clearing the bitmap cache can be useful when a Remote Desktop session shows outdated visual details, graphics appear corrupted, or you are troubleshooting a display issue. It may also be appropriate when you want to remove locally stored cached screen data. A cache clear is not a guaranteed fix for every connection problem; network issues, display settings, graphics drivers, and remote-session configuration can also cause visual symptoms.
Clear connection history when you want to remove old computer names from the client’s recent list. Remove saved credentials when you need Windows to prompt for a new sign-in. Choose the specific data you want to remove rather than deleting every RDP-related file or Registry entry.
Frequently Asked Questions
Will clearing the RDP cache delete anything on the remote computer?
No. The bitmap cache described here is stored on your local Windows computer. Clearing it does not delete files, accounts, or settings on the remote machine.
Will clearing the cache make Remote Desktop faster?
Usually, the cache is intended to improve performance. After you clear it, the first connection may need to download visual details again. Clearing it is more useful for troubleshooting or removing local cached data than as a general speed boost.
Does clearing the cache remove my saved password?
No. The bitmap cache, connection history, and saved credentials are separate. Use Credential Manager or the cmdkey command to remove saved sign-in details.
Do I need to restart Windows?
A full restart is generally not necessary. Close Remote Desktop before deleting its cache files, then reopen the client. If Windows reports that a file is in use, make sure all Remote Desktop sessions and client windows are closed and try again.
Conclusion
To clear the Windows RDP bitmap cache, close Remote Desktop and remove the files in %LOCALAPPDATA%\Microsoft\Terminal Server Client\Cache. If you want to erase recently used computer names, remove the appropriate history entries from the Windows Registry. If you need to stop Windows from reusing an old password, delete the matching entry in Credential Manager instead.
These steps address different types of stored Remote Desktop data, so there is no need to remove everything when you only have one issue. Back up Registry entries before editing them, delete only the files or records you recognize, and contact your administrator if your device or connection is managed by an organization.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.