TechBuzzPro

Clear Windows Security Protection History in Windows 11

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Windows Security keeps a history of every threat it detects and every action it takes, and you can clear that history in Windows 11 only by deleting the folder that stores it, because Microsoft does not provide a built-in "clear history" button. The protection history lives inside a hidden system folder, so you need to show hidden items and take ownership of the folder before you can remove its contents. This guide walks through the supported method, what to prepare, and how to recover if something goes wrong.

What You'll Need

  • Administrator rights on the Windows 11 PC (the built-in Administrator account or an account in the Administrators group).
  • File Explorer with hidden items and protected operating system files visible.
  • A few minutes and a restart, because Windows Security locks the history folder while the service is running.
  • Optionally, a restore point or backup of important files, since you are deleting system-protected data.

Step-by-Step

  1. Open Windows Security and note the current history. Press the Windows key, type Windows Security, and open the app. Go to Virus & threat protection and click Protection history. This is the list you are about to clear. If it is already empty, there is nothing to remove and you can stop here.
  2. Show hidden files and protected operating system files. Open File Explorer, click View on the toolbar, then Show, and enable Hidden items. Next, click the three-dot menu, choose Options, open the View tab, and clear the check box for Hide protected operating system files (Recommended). Click Apply and OK. Labels can differ slightly by Windows 11 version and region, but these options are in the same place across current builds.
  3. Navigate to the protection history folder. In File Explorer, go to C:\ProgramData\Microsoft\Windows Defender\Scans\History. If you cannot see ProgramData, hidden items are still off, so repeat the previous step. Inside History you will see subfolders named like Results and Service, plus files that store the detection records.
  4. Take ownership of the folder. Right-click the History folder and choose Properties. Open the Security tab, click Advanced, and check the Owner line. If it is not your account or Administrators, click Change, type your account name, click Check Names, then OK. On the Advanced Security Settings window, tick Replace owner on subcontainers and objects and click Apply. This step is what lets you delete files that Windows otherwise protects.
  5. Grant yourself full control. Still in the Advanced Security Settings window, open the Permissions tab, click Add, choose Select a principal, type your account name, and set the permission level to Full control. Tick Replace all child object permission entries with inheritable permission entries from this object, then click Apply and confirm any warning. Close the properties windows.
  6. Delete the contents of the History folder. Open the History folder, select everything inside it with Ctrl+A, and press Delete. If a file is in use, close Windows Security first, then try again. You can also delete the subfolders themselves; Windows recreates them automatically.
  7. Restart the PC. A restart releases any file locks and lets Windows Security rebuild the history store. After signing back in, open Windows Security > Virus & threat protection > Protection history. It should now be empty or show only events that occurred after the restart.
  8. Restore your File Explorer settings. Return to View > Show and turn hidden items back off, and re-enable Hide protected operating system files in Folder Options. Leaving these visible makes it easy to delete the wrong system file later.

Common Mistakes

  • Deleting the whole Windows Defender folder instead of the History subfolder. Removing the parent folder can break Windows Security and force a repair. Delete only the contents of Scans\History.
  • Skipping the ownership step. Without taking ownership and granting full control, Windows returns "You need permission to perform this action" and nothing is deleted.
  • Leaving Windows Security open. The app holds a lock on the history files while it is running, so deletion fails silently or with a sharing violation. Close it before deleting.
  • Forgetting to re-hide protected files. Leaving protected operating system files visible is a common cause of accidental deletions later.
  • Expecting the history to stay empty forever. Windows Security logs new detections as they happen, so the list refills over time. That is normal behavior, not a failed cleanup.

Tips

  • Create a restore point before changing folder ownership. If Windows Security misbehaves afterward, System Restore returns the permissions to their original state.
  • Use an administrator account that is not the built-in Administrator, because some builds restrict folder access for that account.
  • If you only want to hide old entries rather than delete them, there is no official option to archive or filter protection history, so clearing the folder is the only supported route.
  • Run a quick scan after clearing the history to confirm Windows Security is still working and to generate a fresh, clean record.
  • Keep Windows updated. Cumulative updates occasionally adjust folder permissions, and an up-to-date build has the most predictable behavior.

Troubleshooting

Access denied when deleting files. Reopen the folder's Advanced Security Settings and confirm your account is the owner and has Full control. If the owner is TrustedInstaller, change it to Administrators first, then to your account.

Files reappear immediately. Windows Security is still running. Close the app, end the Antimalware Service Executable process from Task Manager only if you understand the risk, or simply restart and delete again before opening Windows Security.

Windows Security will not open after cleanup. Open Settings > Apps > Installed apps, find Windows Security, choose Advanced options, and click Repair. If that fails, use Reset, which restores the app to its default state and clears its settings but not your files. As a last resort, run sfc /scannow from an elevated Command Prompt to repair system files.

Protection history is still populated. Some entries are stored per user profile. Sign in with the account that received the detection, or repeat the folder deletion for each user account on the PC.

You cannot find the ProgramData folder. Type the full path into the File Explorer address bar instead of browsing. If the path does not exist, Windows Security may never have logged a detection, which means there is nothing to clear.

Frequently Asked Questions

Is there an official clear history button in Windows Security?

No. Microsoft does not provide a button to clear protection history in Windows 11. Deleting the contents of the history folder is the method that works.

Does clearing protection history remove threats from my PC?

No. It only removes the log of past detections and actions. If a threat is still present, run a full scan and let Windows Security quarantine or remove it.

Will clearing the history affect Windows Defender's protection?

No. Real-time protection, cloud-delivered protection, and scheduled scans continue to work. Only the record of past events is removed.

Can I clear the history without administrator rights?

No. The history folder is protected, and changing ownership or permissions requires an administrator account.

Why does the history come back after a while?

Windows Security writes a new entry every time it detects something or takes an action. New entries are expected and do not mean the cleanup failed.

Does this work on Windows 10 too?

The same folder path and ownership steps apply to Windows 10, though menu labels in File Explorer differ slightly between versions.