How to Delete Saved Passwords in Windows 11 and Clear Local Records That Store Your Data 10 min read

How to Delete Saved Passwords in Windows 11 and Clear Local Records That Store Your Data

Windows 11 quietly keeps copies of what you type, copy, capture, and sign in to. Most of these records exist to save you time. A PowerShell command you ran last month, a password you pasted into Notepad, or a screenshot you never meant to keep can all sit on your drive long after you forget about them.

How to Delete Saved Passwords in Windows 11 and Clear Local Records That Store Your Data

Anyone who can sign in to your account can open most of these files. Malware running in your session can read them too. If you share your PC, plan to sell it, or simply want a tighter setup, cleaning these spots takes about 20 minutes.

This guide walks through each local record, shows you where it lives, and explains how to wipe it and stop it from building up again.

Why Windows 11 Local Records Put Your Privacy at Risk

Windows encrypts some stores, like Credential Manager and Recall snapshots. Others sit on disk as plain text that any text editor can open. Encryption also offers limited protection here, because Windows unlocks these stores for whoever is signed in.

The real risk comes down to three situations:

  • Shared PCs: Family members or coworkers using your account can read your history.
  • Resold or reassigned PCs: Old records follow the hardware if you skip the cleanup.
  • Malware infections: Info-stealing malware targets exactly these files because they often hold tokens and passwords.

Where Windows 11 Stores Your Data and Passwords

Record What It Holds Format
Credential Manager Saved network, app, and web logins Encrypted vault
Browser password vaults Website usernames and passwords Encrypted, often synced
Wi-Fi profiles Network names and security keys System profiles
PowerShell history Every command you typed Plain text
Notepad session state Unsaved tabs and notes Local cache
Clipboard history Up to 25 copied items Local, optional cloud sync
Snipping Tool captures Auto-saved screenshots and recordings Image and video files
Recall snapshots Screenshots of your screen activity Encrypted local database
Custom dictionary Words Windows learned from your typing Plain text
Activity and file history Recent files, searches, Run commands Mixed

How to Delete Saved Passwords From Credential Manager in Windows 11

Credential Manager stores logins for network shares, Remote Desktop, mapped drives, Microsoft apps, and some websites. Old entries pile up for years.

Clean it manually:

  1. Search for Credential Manager from the taskbar and open it.
  2. Open Windows Credentials, then Web Credentials.
  3. Expand each entry you don't need and click Remove.

There's no button to remove everything at once.

Clean it in bulk with cmdkey: First, save a list of what exists so you know what you're deleting. Open Terminal in your own account and run:

cmdkey /list

To remove one entry, copy its target name and run:

cmdkey /delete:TargetName

To remove every stored credential for your account, run this in PowerShell:

cmdkey /list | ForEach-Object {
  if ($_ -match 'Target:\s*(.+)$') {
    cmdkey /delete:($matches[1].Trim())
  }
}

Run cmdkey /list again to confirm the vault is empty. Each Windows user account has its own vault, so repeat these steps for every account on a shared PC.

How to Remove Saved Passwords in Edge, Chrome, and Firefox

Browsers keep their own password vaults, separate from Windows. Clearing Credential Manager leaves them untouched.

Before you delete anything, check sync. If your browser syncs to an account, deleting passwords on this PC deletes them on your phone and other devices too. Turn off sync first if you only want to clean this machine.

Microsoft Edge:

  1. Open Settings > Privacy, search, and services > Clear browsing data.
  2. Click Choose what to clear and set the range to All time.
  3. Tick Passwords and Autofill form data.
  4. Click Clear now.

To stop future saves, open Settings > Passwords and autofill and turn off Offer to save passwords.

Google Chrome:

  1. Open Passwords and autofill > Google Password Manager.
  2. Delete single entries from the Passwords list, or open Settings and use Delete all Google Password Manager data.
  3. Turn off Offer to save passwords and passkeys.

The full delete also removes saved passkeys, so export your passwords first if you might need them.

Mozilla Firefox:

  1. Open the menu and choose Passwords.
  2. Select each login and remove it, or use the three-dot menu to remove all.

Don't forget saved payment cards and addresses. Each browser keeps them under its autofill settings.

How to Forget Saved Wi-Fi Networks and Their Passwords

Every network you join leaves a profile with its security key, and you can see all saved Wi-Fi passwords from the command line. These profiles also reveal places you've connected from, like your office, a hotel, or a friend's home.

Remove networks in Settings: Open Settings > Network & internet > Wi-Fi > Manage known networks, select each network, and click Forget.

Remove networks from the command line:

netsh wlan show profiles
netsh wlan delete profile name="NetworkName"

To delete all saved networks at once:

netsh wlan delete profile name=* i=*

How to Clear PowerShell History That Exposes Passwords and Tokens

PowerShell, including PowerShell 7, saves every command you run to a text file through its PSReadLine module. If you ever typed a password, API key, or access token into a command, that string likely still exists on your disk.

PSReadLine tries to skip lines that contain words like "password" or "token." The filter only matches keywords, so it misses plenty of secrets.

Where it lives: Press Win + R and paste this path:

%AppData%\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt

Open the file in Notepad to see what it holds before you delete it.

Delete the history: Open PowerShell and run these two commands:

Clear-History
Remove-Item (Get-PSReadLineOption).HistorySavePath

The first command clears the current session. The second deletes the saved file.

Stop future logging: Run this command to turn off saving entirely:

Set-PSReadLineOption -HistorySaveStyle SaveNothing

This setting only lasts for the current session. To make it permanent, add the same line to your PowerShell profile. Run notepad $PROFILE, paste the line, and save the file. If PowerShell says the file doesn't exist, create it first with New-Item -Path $PROFILE -Force.

Also close any Windows Terminal tabs you used, since open sessions keep their own history in memory.

How to Stop Notepad From Keeping Unsaved Passwords and Notes

Modern Notepad reopens every tab from your last session, including text you never saved. Many people use Notepad as a scratchpad for passwords, one-time codes, and private notes, then assume closing the window discards them. It doesn't.

Clear what Notepad already holds:

  1. Open Notepad.
  2. Close each tab you don't need, and choose Don't save when prompted.

Change the startup behavior:

  1. Click the Settings gear in Notepad.
  2. Find When Notepad starts.
  3. Pick Start new session and discard unsaved changes.
  4. Turn off Recent files on the same page if you don't want Notepad listing files you opened before.

From now on, Notepad opens blank every time.

How to Clear and Turn Off Clipboard History in Windows 11

Clipboard history keeps up to 25 recent items, including text and images. If you copy a password from your password manager or a bank account detail from an email, it stays in that list. Pinned items even survive restarts, and cloud sync can push them to your other devices.

Clear the list:

  1. Press Win + V.
  2. Click Clear all at the top.
  3. Unpin any items you pinned, since Clear all skips pinned entries.

Turn it off:

  1. Open Settings > System > Clipboard.
  2. Turn off Clipboard history.
  3. Turn off Share across your devices if it's on.

With history off, Windows keeps only the single item you copied last.

How to Stop Snipping Tool From Auto-Saving Screenshots

Snipping Tool saves every screenshot and screen recording to a folder automatically, even the shots you take by mistake. Screenshots often capture account pages, chats, and documents. If OneDrive backs up your Pictures folder, those images also land in the cloud.

Remove existing captures: Open File Explorer and go to Pictures > Screenshots. Also check Videos > Screen Recordings. Delete anything you don't want to keep.

Turn off automatic saving:

  1. Open Snipping Tool.
  2. Click the three-dot menu and select Settings.
  3. Turn off Automatically save original screenshots.
  4. Turn off Automatically save original screen recordings.

Check OneDrive backup: Click the OneDrive icon in the taskbar, open Settings > Sync and back up > Manage back up, and turn off the Pictures folder if you don't want screenshots uploaded. Delete any copies already in your OneDrive Screenshots folder online as well.

How to Turn Off Recall and Delete Its Screen Snapshots

Recall runs only on Copilot+ PCs. When enabled, it takes snapshots of your screen every few seconds and makes them searchable. The data stays encrypted on your device, but Recall can still capture passwords, messages, and banking pages that appeared on screen.

Disable Recall and delete snapshots:

  1. Open Settings > Privacy & security > Recall & snapshots.
  2. Turn off Save snapshots.
  3. Select Delete snapshots and choose Delete all.

If you want to keep Recall, use the same page to add apps and websites to the filter list so Recall never records them.

How to Clear the Windows 11 Custom Dictionary

Windows learns new words as you type and stores them in a personal dictionary. Over time, this list collects names, nicknames, usernames, project codes, and slang. It's a plain text file, so anyone can read it.

View and clear the file:

  1. Press Win + R and enter %AppData%\Microsoft\Spelling.
  2. Open the folder for your language, such as en-US.
  3. Open default.dic in Notepad, delete its contents, and save.

Stop Windows from building it:

  1. Open Settings > Privacy & security > Inking & typing personalization.
  2. Turn off Custom inking and typing dictionary.

Stop sending typing data to Microsoft: Go to Settings > Privacy & security > Diagnostics & feedback, expand Improve inking and typing, and turn it off.

How to Clear Activity, Search, and Recent File History

Windows tracks the files you open, the things you search, and the commands you type into the Run box. Together, these trails paint a clear picture of what you do on the PC.

Activity history: Open Settings > Privacy & security > Activity history, click Clear history, and turn off Store my activity history on this device.

Search history: Open Settings > Privacy & security > Search permissions. Click Clear device search history and turn off Search history on this device. You can also turn off Bing web results in Windows 11 Search.

File Explorer recent items:

  1. Open File Explorer, click the three-dot menu, and pick Options.
  2. Under Privacy, click Clear.
  3. Untick Show recently used files and Show frequently used folders if you don't want new ones listed.

Recent shortcuts folder: Press Win + R, enter %AppData%\Microsoft\Windows\Recent, select everything, and delete it.

Run box history: Open Registry Editor and go to:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU

Delete the lettered entries on the right, but keep the (Default) value. Back up the key first with File > Export.

App usage stats: Open Task Manager, select App history, and click Delete usage history.

Temporary files: Open Settings > System > Storage > Temporary files, review the list carefully, and remove what you don't need. Check the Downloads box only after you've looked through that folder. For a scripted cleanup, run PowerShell commands to clean up Windows.

Common Mistakes That Bring Deleted Data Back

  • Leaving sync on: Deleted passwords and settings can come right back from your Microsoft or Google account.
  • Cleaning one account only: Each Windows user has separate vaults and history files.
  • Deleting without a backup: Export browser passwords and note your cmdkey list before a full wipe so you don't lock yourself out.
  • Skipping password changes: Deleting a saved copy doesn't protect an account if the password already leaked. Change it at the service.
  • Storing secrets in plain text: Avoid any tip that tells you to put a password into the registry, a script, or a text file.

When to Reset Windows 11 Instead of Cleaning Manually

If you plan to sell, donate, or hand over the PC, these steps reduce risk but can still miss app caches and leftover files. A full reset removes everything in one pass, so back up your files first.

Open Settings > System > Recovery, click Reset PC, and choose Remove everything. Turn on the option to clean the drive when Windows offers it. Sign out of your Microsoft account and remove the device from your account page before you hand it over.

Frequently Asked Questions

Does deleting Credential Manager entries remove my browser passwords?

No. Credential Manager, Edge, Chrome, and Firefox each keep separate vaults. You need to clear each one on its own.

Is the PowerShell history file encrypted?

No. Windows saves it as plain text, so anyone who opens your AppData folder can read every command in it.

Will turning off clipboard history delete my pinned items?

Clear them manually first. Pinned items survive the Clear all button, so unpin them before you turn the feature off.

Can I keep Recall but protect sensitive content?

Yes. Add apps and websites to the filter list on the Recall & snapshots page, and Recall will skip them.

Does clearing passwords on one device affect my other devices?

It does if sync is on. Turn off sync in your browser or Microsoft account before you delete if you want the change to stay on this PC.

Can I recover credentials after I delete them?

Usually not. Export your browser passwords and save your cmdkey list before a full cleanup if you might need them later.

Was this guide helpful?
Fdaytalk

The Fdaytalk editorial team tests games, apps and devices and writes clear, step-by-step fixes and guides.

More from Fdaytalk →

Related reading

More in Tech →