Windows Defender keeps its protection history for 30 days by default.
you’re able to clear them before this date to improve computer performance by using the following ways.
How to Clear Protection History in Windows 11/10
Way 1.

Using File Explorer (Manually)
Windows Defender stores protection history logs as accessing files on your box.
So, you’ve got the option to manually clear protection history throughFile Explorer.
PressWindows + Ekey combinations to open File Explorer.
![]()
Then move on to theViewtab and check the checkbox next toHidden items.
TypeC:\ProgramData\Microsoft\Windows Defender\Scans\History\Servicein the address bar and pressEnter.
Or you’re free to navigate to this location layer by layer.

Select all files and right-click to chooseDelete.
Way 2.
TypeEvent Viewerin the Windows search box and click it from the best match result.
![]()
ExpandApplications and Services Logsby clicking the inverted triangle button next to it.
Then expandMicrosoft>Windows.
And then scroll down to expandWindows Defender.

Click onOperationaland chooseClear logfrom the right panel.
In the pop-up window, clickClearorSave and Clearto flush the log.
Way 3.
![]()
Using Windows PowerShell (Automatically)
Windows PowerShellis a command-line tool that is commonly used to automate system administration.
Here you’re able to set it to automatically clear Windows Defender protection history.
TypeWindows PowerShellin the Windows search box and right-click it to selectRun as administrator.

In the pop-up window, selectYesto allow this app to change your gear.
What is Windows X-Lite Optimum 11 24H2?
How to get this system downloaded and installed?

Here is the tutorial.
PressWindows + Rkeyboard shortcuts to openRun.
Typegpedit.mscin the input box and pressEnter.

Under theWindows Defender Antivirussection, selectScan.
On the right panel, double-clickTurn on removal of items from scan history folder.
SelectEnabledin the new window.
![]()
Now, all operations have been done, and you wont need to clear protection history manually.
The system will automatically clear Windows Defender protection history according to the number of days you set.
Tip:Sometimes your files may be deleted by Windows Defender.
In this case, what if you want to recover them?
Here professionaldata recovery softwareMiniTool Power Data Recoveryis recommended to you.
it’s possible for you to choose your favorite way to clear it for the best computer performance.
For more information about Windows Defender, welcome to visitMiniTool News Center.