Your Search Bar For Shrewd Tips

How Do I Clear Protection History Windows 11?


If you want to clear Protection history in Windows 11, first check whether the entries are simply old notifications or whether Microsoft Defender has quarantined a file that still needs attention. The Protection history page does not offer a consistent “clear all” button in every Windows 11 version. You can review and resolve individual detections in Windows Security, wait for older entries to disappear, or—if you understand the risks—remove Defender’s stored detection-history files using an administrator account.

Clearing the history only removes records from the list. It does not make a detected file safe, restore a quarantined item, or turn off Microsoft Defender. Use the steps below to choose the right approach.

What Windows 11 Protection History Shows

Protection history is a record of actions taken by Microsoft Defender Antivirus and some other Windows security features. It may show malware detections, blocked apps or files, potentially unwanted apps, and items that Windows has quarantined or removed. The exact entries depend on your Windows version and security settings.

Before clearing anything, open an entry and read its status and details. A detection marked as quarantined or removed has already had an action taken; an item that needs your attention may require you to choose an action. If you are unsure whether a file is safe, leave it quarantined and investigate the detection rather than restoring it just to make the list look clean.

Open Protection History in Windows 11

  • Open the Start menu and search for Windows Security.
  • Open the Windows Security app, then select Virus & threat protection.
  • Under the protection information, select Protection history. You may need to scroll to find it.
  • Select an entry to expand it and review the threat name, date, affected file, and action taken.

You can also open Settings and go to Privacy & security > Windows Security > Virus & threat protection. The wording or layout can vary slightly between Windows 11 updates.

Try the Built-In Options First

Windows Security does not provide a reliable, universal button for deleting every Protection history entry. However, you can resolve entries that still need an action. Expand the relevant item and use the available option, such as Remove, Quarantine, or Allow on device. Only allow a file if you have independently confirmed it is legitimate and safe. Allowing a detection can expose your device to harm.

If the entry shows that Defender already removed or quarantined the item, you usually do not need to take another action. Protection history is a log, not a folder where you can select notifications and press Delete. Older events may disappear from the page automatically after a limited retention period; Microsoft commonly displays recent history for around two weeks. The retention of a quarantined file is separate from how long its event appears in the list.

Clear Stored Detection History with PowerShell

If you need to remove the stored detection-history records sooner, you can try deleting the contents of Defender’s DetectionHistory folder. This is an advanced workaround, not a button in the Windows Security interface. It may not work on every Windows 11 build because Defender protects its files. Do not change folder ownership or weaken security protections just to force the deletion.

  • Save your work and close the Windows Security app.
  • Open Start, search for Windows PowerShell or Terminal, right-click it, and select Run as administrator. Approve the User Account Control prompt.
  • Enter the following command to check whether the folder exists:
$path = "$env:ProgramData\Microsoft\Windows Defender\Scans\History\Service\DetectionHistory"
Test-Path $path

If the result is True, you can try removing the files and subfolders inside DetectionHistory with this command:

Get-ChildItem -LiteralPath $path -Force | Remove-Item -Recurse -Force

This command targets the contents of the DetectionHistory folder, not the folder itself. Review the path carefully before running it. If PowerShell reports that access is denied, stop there. Defender may be protecting the files, and repeatedly trying to bypass that protection can cause problems or reduce your security.

Restart your PC, then reopen Windows Security and check Protection history. The records may take a little time to refresh, and some items may return if Defender creates new detection events. If the folder is missing, or the command succeeds but the page does not change, use the other options in this guide instead of deleting unrelated files.

Do Not Confuse History with Quarantine

Removing a history entry is not the same as removing a threat from your device. Protection history tells you what Defender detected and what happened afterward. Quarantine stores a potentially harmful file in an isolated location so it cannot run normally. A file may remain quarantined even if its notification is no longer visible, and deleting history does not restore or safely remove that file.

To review quarantined items, open Windows Security > Virus & threat protection > Protection history, expand the relevant detection, and read the available details. If the file is confirmed to be malicious, choose the removal option offered by Windows Security. If you believe it is a false positive, verify its source and consider submitting it to Microsoft for analysis before restoring or allowing it.

Never restore a file solely to clear a notification. If a detection keeps returning, run a full scan and check whether the same app or downloaded file is recreating it.

What to Do If Protection History Will Not Clear

  • Restart Windows. A restart can refresh the Windows Security interface and complete pending security actions.
  • Install Windows updates. Go to Settings > Windows Update, check for updates, and install available updates. Security app and Defender updates can resolve display issues.
  • Update security intelligence. In Windows Security, open Virus & threat protection, look for protection updates, and select the option to check for updates.
  • Run a scan. Start a quick scan or, if you suspect an active infection, choose a full scan. Follow the recommended actions for any new detections.
  • Check the account. Confirm you are using an administrator account if you are trying the PowerShell workaround. Standard accounts may not have the permissions required.
  • Check whether another antivirus app is installed. A third-party security product can change which protections are active or where alerts appear. Use that product’s own interface for its records.

If the entries remain but show that the threats were handled, leaving them alone is usually safer than trying to force-delete protected Defender data. If Windows Security itself appears broken, use Windows’ built-in repair options or contact Microsoft Support rather than changing protected system folders.

Can You Turn Off Protection to Clear the List?

Turning off real-time protection or Tamper Protection is not a recommended way to clear Protection history. These settings help prevent malware and unwanted changes to Defender, and disabling them does not guarantee that stored history will be removed. Keep protection enabled while troubleshooting. If a legitimate administrative task requires a security-setting change, understand the consequences and restore the protection promptly afterward; for clearing ordinary history entries, that step should not be necessary.

How to Prevent Unnecessary Entries

Protection history may grow when Defender repeatedly detects the same file or app. Remove the original download or uninstall the app if it is unwanted, then run a scan to check for remaining copies. Download software from trusted sources, keep Windows and security intelligence up to date, and avoid opening unexpected email attachments or files from unfamiliar websites.

If you believe Defender is repeatedly flagging a safe file, do not create a broad exclusion for an entire folder or drive. First confirm the file’s publisher and source, then submit it to Microsoft for review. Exclusions reduce scanning coverage and can give malicious files a place to hide.

Conclusion

To clear Protection history in Windows 11, open Windows Security > Virus & threat protection > Protection history and review the entries before taking action. Windows does not offer a consistent built-in button to erase the whole list, and older records may disappear automatically. If you need to clear stored detection records sooner, an administrator can try removing the contents of Defender’s DetectionHistory folder with PowerShell, but protected-file errors should not be bypassed. Most importantly, remember that clearing history does not remove a threat or make a quarantined file safe—resolve the detection itself and keep Microsoft Defender enabled.


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 →