When you try to delete a saved credential in Windows 11 Credential Manager, the delete option may be grayed out or nothing happens when you click it. This problem occurs because the credential is locked by an active session, corrupted, or protected by Group Policy settings. This article explains why Credential Manager entries become undeletable and provides step-by-step methods to remove them.
Key Takeaways: Remove Stuck Credentials in Windows 11
- Control Panel > Credential Manager > Windows Credentials > Remove: Standard deletion method for saved credentials like mapped drives and network passwords.
- Command Prompt with vaultcmd /deletecreds: Forcefully deletes a specific credential when the GUI fails to respond.
- Registry Editor at HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Credentials: Directly removes corrupted credential entries that block deletion in Credential Manager.
Why a Credential Manager Entry Cannot Be Deleted in Windows 11
A credential entry in Credential Manager stores saved usernames and passwords for network shares, mapped drives, remote desktops, and applications. When you attempt to delete an entry and the option is unavailable, one of three root causes is at play.
First, the credential is currently in use by an active session. For example, a mapped network drive that is open in File Explorer locks the associated credential. Windows prevents deletion until the session ends. Second, the credential store file itself may be corrupted. This corruption can occur after a failed system update, disk errors, or abrupt shutdowns. Third, Group Policy settings enforced by an IT administrator can disable the ability to delete credentials. This restriction is common on corporate-managed devices running Windows 11 Pro or Enterprise.
Less common causes include antivirus software that locks credential files during real-time scanning and user profile corruption that prevents write operations to the credential store. Understanding these causes helps you choose the correct fix without unnecessary steps.
Steps to Delete a Stuck Credential Manager Entry in Windows 11
Follow these methods in order. Start with the simplest GUI method, then move to command-line and registry approaches if the entry still refuses to delete.
Method 1: Delete the Credential from Credential Manager Properly
Close all open applications, especially File Explorer windows connected to network shares. Then use the standard Credential Manager interface.
- Open Credential Manager
Press Windows + R, type control, and press Enter. In Control Panel, set View by to Large icons. Click Credential Manager. - Select the credential type
Click Windows Credentials or Web Credentials depending on where the entry is stored. Most network-related entries are under Windows Credentials. - Expand the target entry
Click the arrow next to the credential you want to delete to expand its details. - Click Remove
Click the Remove link. If the link is grayed out, proceed to Method 2. If a confirmation dialog appears, click Yes. - Restart and verify
Restart Windows 11. Open Credential Manager again and confirm the entry is gone.
Method 2: Delete the Credential Using Command Prompt
The vaultcmd tool can delete credentials directly from the Windows Vault. This method bypasses the GUI and works even when the Remove button is grayed out.
- Open Command Prompt as administrator
Press Windows + S, type cmd, right-click Command Prompt, and select Run as administrator. Click Yes in the UAC prompt. - List all credential vaults
Type the following command and press Enter:vaultcmd /list. Note the vault GUID or display name, typically Windows Vault or Web Vault. - List credentials in the vault
Typevaultcmd /listcreds:"Windows Vault" /alland press Enter. Replace Windows Vault with the vault name from step 2 if different. A list of credential GUIDs and resource names appears. - Identify the target credential GUID
Find the credential entry you want to delete. Note its GUID, which looks like {12345678-1234-1234-1234-123456789abc}. - Delete the credential
Typevaultcmd /deletecreds:"Windows Vault" /credid:{GUID}and press Enter. Replace{GUID}with the actual GUID you noted. Press Y when prompted to confirm. - Verify deletion
Runvaultcmd /listcreds:"Windows Vault" /allagain to confirm the entry is removed.
Method 3: Delete the Credential from Registry
If the credential is corrupted, the Registry Editor method removes the entry directly from the credential storage keys. This method is effective when both the GUI and vaultcmd fail.
- Open Registry Editor
Press Windows + R, type regedit, and press Enter. Click Yes in the UAC prompt. - Navigate to the Credentials key
In the left pane, expand the path: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Credentials. - Locate the entry
Click the Credentials folder. In the right pane, look for subkeys named with GUIDs. Click each subkey and check the TargetName string value in the right pane to identify the credential you want to delete. - Back up the subkey
Right-click the subkey and select Export. Save the .reg file to your desktop as a backup in case you need to restore it. - Delete the subkey
Right-click the subkey again and select Delete. Click Yes to confirm. - Restart Windows 11
Close Registry Editor and restart your computer. Open Credential Manager to confirm the entry no longer appears.
If Credential Manager Still Has Issues After Deleting the Entry
After you delete the entry, you may encounter related issues. Address them using the steps below.
“The credential manager entry cannot be deleted” error message appears repeatedly
This error indicates the credential store file is corrupted beyond a single entry. Run the System File Checker to repair system files. Open Command Prompt as administrator and run sfc /scannow. After completion, run DISM /Online /Cleanup-Image /RestoreHealth. Restart and try deleting the entry again using Method 2.
New credentials cannot be saved after deleting the old one
This issue occurs when the credential store file is damaged. Reset the credential store by deleting the file directly. Press Windows + R, type %appdata%\Microsoft\Credentials, and press Enter. Delete all files in this folder. Then press Windows + R, type %localappdata%\Microsoft\Credentials, and delete all files there as well. Restart Windows 11. Note that this action removes all saved credentials, so you must re-enter passwords for network shares and mapped drives.
Group Policy prevents credential deletion on a work or school PC
If your device is managed by an organization, the IT administrator may have set a policy that blocks credential deletion. Open Command Prompt as administrator and run gpresult /h C:\gpresult.html. Open the generated HTML file and search for Credentials Manager. If you see Deny access to credential manager set to Enabled, you cannot delete credentials. Contact your IT support team to request an exception or have them remove the credential remotely.
Credential Manager Deletion Methods Compared
| Item | Credential Manager GUI | Command Prompt (vaultcmd) | Registry Editor |
|---|---|---|---|
| Difficulty | Easy | Medium | Advanced |
| Requires admin rights | No | Yes | Yes |
| Best for | Standard deletion of active credentials | Stuck credentials with grayed-out Remove button | Corrupted credential entries that fail all other methods |
| Risk of data loss | Low | Low | Medium if backup is skipped |
| Works when GUI fails | Not applicable | Yes | Yes |
You can now remove any stuck credential in Windows 11 Credential Manager using the GUI, command-line tool, or registry. Try the vaultcmd method first if the Remove button is disabled. For corrupted entries, the Registry Editor approach is the most reliable. After deletion, reset the credential store by clearing the two Credentials folders if new entries cannot be saved.