Windows

How to Clear Windows Defender Protection History in 4 Ways

Learn four practical ways to clear Windows Defender Protection history in Windows Security, including simple cleanup steps and when you may need to remove old threat records manually.

Andrew Miller
Andrew Miller
Technology Writer  •  Sep 19, 2026  •  5 min read

Windows Defender, now called Microsoft Defender in Windows Security, keeps a Protection history log of threats it has detected or blocked. That history is useful for checking past detections, but it can also become cluttered with old entries you no longer need.

If Protection history is showing outdated items, is stuck, or you simply want to clear the log, there are a few different ways to do it. Some are built into Windows, while others use File Explorer or PowerShell for cases where the normal cleanup does not work.

How to Clear Windows Defender Protection History in 4 Ways

What Protection History Does in Windows Security

Protection history records actions taken by Microsoft Defender, such as quarantined threats, blocked apps, and items you have allowed or removed. It is not the same as antivirus scanning itself; it is more like a history log of security events.

Why It Matters If the log is full of old entries, it can be harder to spot recent security alerts. Clearing it can make Windows Security easier to review, especially if you are troubleshooting a recurring detection.

Method 1: Clear Protection History from Windows Security

In some cases, Windows Security will let you remove old threat records directly from the interface. This is the simplest option to try first.

  1. Open Windows Security from the Start menu.
  2. Select Virus & threat protection.
  3. Under Current threats or Protection history, open the history list.
  4. Look for an option such as Remove, Clear all recent items, or a trash/bin icon if it appears.
  5. Follow the on-screen prompt to remove the entries.
Note The exact buttons available depend on your Windows version and Defender build. Some systems show more cleanup options than others.

Method 2: Delete the Protection History Files Manually

If the history keeps coming back or Windows Security will not clear it properly, you can remove the files that store the log. This often works when the interface does not.

  1. Close Windows Security.
  2. Open File Explorer.
  3. Go to this folder: C:\ProgramData\Microsoft\Windows Defender\Scans\History
  4. Open the Service folder inside History.
  5. Delete the contents of that folder, or the folder itself if Windows allows it.
  6. Restart Windows Security and check Protection history again.
Warning Be careful when deleting files in ProgramData. Only remove the Defender history files you are targeting, and do not delete unrelated security folders.

If Windows says a file or folder is in use, Defender may still be running in the background. In that case, try again after closing security windows and waiting a moment, or use one of the other methods below.

Method 3: Clear the History by Using Event and Log Cleanup

Sometimes the visible Protection history is tied to Defender’s internal logging. Clearing old security event data can help remove stale entries when manual deletion is incomplete.

  1. Press Windows + R, type eventvwr.msc, and press Enter.
  2. In Event Viewer, expand Applications and Services Logs.
  3. Look for Microsoft > Windows > Windows Defender or Microsoft Defender-related logs.
  4. Review whether the security history entries are being preserved there as well.
  5. If you are managing a work PC or using advanced policies, clear only logs you understand and have permission to change.
Key Fact Event logs are not the same as Defender’s quarantined item storage, so clearing logs may not always remove every Protection history entry by itself.

Method 4: Use PowerShell or an Elevated Command Prompt

If Defender history is stubborn, PowerShell can help you remove the stored history files more reliably. This is a better option for advanced users or when the normal methods fail.

  1. Right-click the Start button and open Windows Terminal (Admin) or PowerShell (Admin).
  2. Run a command to stop or manage Defender only if you understand the result and your system allows it.
  3. Use PowerShell to delete the Protection history files from the Defender history folder.
  4. Restart Windows Security and check whether the old entries are gone.
Quick Tip If you are unsure about command-line cleanup, use manual file deletion first. It is easier to verify what you are removing.

When Protection History Keeps Reappearing

If old entries return after you clear them, the cause is usually one of these:

In that situation, it helps to identify whether the entries are genuinely new detections or just old records being reloaded. If the same item keeps appearing after cleanup, there may be an active file, app, or policy causing the event again.

Which Method Should You Try First?

Best For Most users should start with the Windows Security interface, then move to manual folder deletion if the history will not clear normally. PowerShell is best for advanced users or stubborn cases.
Note On managed work devices, Group Policy or endpoint security tools may control what appears in Protection history. You may need administrator help if the history is enforced centrally.

What to Do If You Only Want to Hide Old Entries

If your goal is just to keep the list tidy, you may not need to remove every Defender log file. In many cases, clearing the visible Protection history is enough for day-to-day use. Only use deeper cleanup methods if the list is stuck, cluttered, or causing confusion during troubleshooting.

Warning Do not clear security records if you need them for auditing, compliance, or incident review. Once removed, they may not be easy to recover.
Topics

More from Windows

View all →
How to Fix DISM Error 0x800f0915 in Windows
Windows

How to Fix DISM Error 0x800f0915 in Windows

How to Fix Command Prompt When You Can’t Run It as Administrator
Windows

How to Fix Command Prompt When You Can’t Run It as Administrator

5 Ways to Fix HP Support Assistant When It Won’t Install
Windows

5 Ways to Fix HP Support Assistant When It Won’t Install

Why USB Devices Show Up as Unknown in Windows 11
Windows

Why USB Devices Show Up as Unknown in Windows 11

How to Fix the Windows Fast Startup Error 0xc00000d4
Windows

How to Fix the Windows Fast Startup Error 0xc00000d4

How to Fix a Volume Bar That Keeps Appearing in Windows
Windows

How to Fix a Volume Bar That Keeps Appearing in Windows