Helping millions of people navigate the world of technology.

4 Best Ways to Clear Windows Defender Protection History on Windows 11

Windows Defender is Microsoft built-in security application that scans and safeguards your computer from malicious agents. You can get detailed information about the scans and detections made by Windows Defender on the Protection History page. Usually, the Protection History log is cleared automatically after every 30 days, but if you want, you can manually speed things up.

Clearing the Protection History will create extra space on your computer. Also, it can help you fix Windows Security when it’s not opening. This guide features four ways to clear Windows Defender Protection History on Windows 11. So, let’s check them out.

1. Clear Windows Defender Protection History Using File Explorer

Like many applications, Windows Defender stores the log of Protection History on your computer as an accessible file. The quickest and easiest way to access and delete the Protection History log on Windows 11 is by using the File Explorer. Here’s how to do that:

Step 1: Press the Windows + E key to open File Explorer. Click the Windows OS drive, which is generally C for most users.

Step 2: Click the View option at the top, select Show from the context menu, and choose Hidden items option from the submenu.

Hidden items option in File Explorer

Step 3: Next, navigate to the following location or you can copy-paste it in the address bar of File Explorer:

C:\ProgramData\Microsoft\Windows Defender\Scans\History

Step 4: Click the Services folder.

content of History Folder

Step 5: Press the Control + A keys to select everything, and press the Shift + Delete key to permanently remove all the history files.

Service folder content

You’ll gain some storage space if it’s the first time you’ve removed the Windows Defender’s Protection History from your computer.

2 . Clear Windows Defender Protection History Using the Group Policy Editor

The Group Policy Editor is a Windows utility from where you can manage and edit important Windows policies. However, the Group Policy Editor is not available in the Windows 11 Home Edition. If you’re using edition on your computer, skip this solution.

To use it to clear Protection History log, follow the below instructions:

Step 1: Press the Windows + R keys to open the Run dialog box.

Step 2: Type gpedit.msc in the search bar and click OK.

gpedit command in Run tool

Step 3: In the Group Policy Editor, navigate to the following location in the left sidebar:

Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus > Scan

Scan folder in LGPE

Step 4: In the right pane, double-click on the ‘Turn on removal of items from scan history folder.’

Turn on removal of items from scan history folder policy in LGPE

Step 5: Choose Enabled. Also, assign a number of days after which the history gets cleared automatically. By default, it’s set to 30 days.

Enabled option in LGPE

Step 6: Click Apply and OK.

3. Clear Windows Defender Protection History Using Event Viewer

Windows stores a log of messages from the system features like errors, warnings, information, and other messages in Event Viewer. So, Another quick way to clear Windows Defender Protection History is through the Event Viewer. Here’s how:

Step 1: Press the Windows key to open the Start Menu, type Event Viewer in the search bar, and choose Open from the right pane.

Event Viewer in Start Menu

Step 2: Click the drop-down arrow before Applications and Services logs in the left sidebar.

Applications and Services logs in Event viewer

Step 3: Click the drop-down arrow next to the Microsoft folder in the left sidebar.

Microsoft folder in Event Viewer

Step 4: Now, click the drop-down arrow before the Windows folder in the left sidebar.

Windows folder in Event Viewer

Step 5: Locate and double-click on the Windows Defender folder from the left sidebar.

Windows Defender folder in Event Viewer

Step 6: Right-click on the Operational log and choose Clear log from the context menu.

Clear log option in Event Viewer

Step 7: Choose ‘Save and Clear’ in the confirmation box that pops up.

Save and Clear option in Event Viewer

4. Clear Windows Defender Protection History Using Windows PowerShell

Windows PowerShell is a command-line tool that you can use to manage programs, solve system issues, and much more. You can also use it to clear Windows Defender Protection History log on Windows 11. Here’s how:

Step 1: Open the Start Menu, type Windows PowerShell in the search bar, and choose Run as administrator from the right pane.

Windows PowerShell in Start Menu

Step 2: In the elevated PowerShell window, type the following command and press Enter. Make sure to replace Days in the command with the number of days after which you want the Protection History log to be cleared automatically. For example, we’ve chosen 5 days.

Set-MpPreference -ScanPurgeItemsAfterDelay Days

command in PowerShell window

How to Fix Protection History Crashing Issue

Is Protection History crashing every time you open it on Windows 11? If that’s the case then the you might be above to see the History in the first place. Follow the below solutions to fix Protection History crashing issue on Windows 11.

1. Disable Real-Time Protection Temporarily

The best way to fix the Protection History crashing issue is to disable Real-time protection temporarily on the Windows Security app. Here’s exactly what you need to do:

Step 1: Open the Start Menu, type Windows Security, and press Enter.

Windows Security in Start Menu

Step 2: Choose Virus & threat protection from the left sidebar.

Virus & threat protection in Windows Security

Step 3: Click Manage settings.

Manage settings option in Windows Security

Step 4: Disable the toggle under Real-time protection and Cloud-delivered protection.

Real-time protection in Windows Security

Step 5: Press Windows + E keys to open the file File Explorer and navigate to the following location or you can copy-paste it in the address bar:

C:\ProgramData\Microsoft\Windows Defender\Scans\History

Service folder content

Step 6: Open Windows Security app and enable Real-time protection and Cloud-delivered protection.

Enable Real-time protection in Windows Security

2. Reset Windows Security

If you’re still facing the problem, then you can reset the Windows Security app as the last resort. You can do that by following the below steps.

Step 1: Press Windows + I to open the Settings app.

Step 2: Choose Apps from the left sidebar.

Apps in Windows Security

Step 3: Select Installed apps.

Installed apps in Settings

Step 4: Click the three horizontal dots next to Windows Security and choose Advanced options.

Advanced options in Settings app

Step 5: Click the Reset button.

Reset button in Settings

Keep Protection History Clean

Whether it’s temporary system files or Windows Defender Protection History logs, you should keep clearing them regularly. This ensures that your system always offers the best performance. You can clear Windows Defender Protection History by following either of the method mentioned above.

Was this helpful?

Thanks for your feedback!

Last updated on 23 February, 2023

Leave a Reply

Your email address will not be published. Required fields are marked *

The article above may contain affiliate links which help support Guiding Tech. The content remains unbiased and authentic and will never affect our editorial integrity.