Helping millions of people navigate the world of technology.

4 Ways to Clear Windows Defender Protection History

Key Takeaways 
  • The easiest way to clear Windows Defender Protection history is by using File Explorer.
  • You may also clear the Windows Defender Protection history from the Group Policy Editor or Event Viewer.

Method 1: Using File Explorer

Like many applications, Windows Defender stores the Protection History log 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 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 > choose Hidden items from the submenu.

Hidden items option in File Explorer

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

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

Step 4: Click the Service folder.

content of History Folder

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

Service folder content

If this is the first time you’ve removed Windows Defender’s Protection History from your computer, you’ll gain some storage space.

Method 2: Using the Group Policy Editor

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

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 several days, after which the history gets cleared automatically. By default, it’s set to 30 days.

Enabled option in LGPE

Step 6: Click Apply > OK.

Method 3: Using Event Viewer

Windows stores a log of messages from the system, including 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 > choose Open from the right pane.

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.

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

Windows folder in Event Viewer

Step 5: 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 > choose Clear log from the context menu.

Clear log option in Event Viewer

Step 7: Choose Save and Clear in the confirmation box.

Save and Clear option in Event Viewer

Method 4: Using Command Line Tools

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

Step 1: Open the Start Menu > type Windows PowerShell in the search bar > choose Run as administrator.

Windows PowerShell in Start Menu

Step 2: Type the following command in the elevated PowerShell window and press Enter. Ensure 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

Was this helpful?

Thanks for your feedback!

Last updated on 12 August, 2024

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.