Have you ever noticed the Windows Defender protection history? Do you have any idea how to clear protection history in Windows 10/11? This post from MiniTool provides you with several reliable ways to achieve this goal.

What Is Windows Defender Protection History

Windows Defender is antivirus software built into your PC that protects your computer from viruses , malware threats, and attacks. Information such as actions taken by Microsoft Defender Antivirus on your behalf, potentially unwanted applications that have been removed, or critical services that have been shut down are stored on the Protection History page.

Windows Defender keeps its protection history for 30 days by default. You can 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 computer. So, you can manually clear protection history through File Explorer .

Step 1. Press Windows + E key combinations to open File Explorer.

Step 2. Type C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service in the address bar and press Enter .

Step 3. Select all files and right-click to choose Delete .

select the button to delete files

5 Ways to Fix Protection History Not Showing Issue
5 Ways to Fix Protection History Not Showing Issue

This article put forwards several ways to fix the “protection history not showing” issue in Windows 10/11.

Read More

Way 2. Using Event Viewer (Manually)

Windows Event Viewer displays a log of application and system messages, including errors, information messages, and warnings. If you do not know how to clear protection history, you can use it by referring to the following steps.

Step 1. Type Event Viewer in the Windows search box and click it from the best match result.

Step 2. Expand Applications and Services Logs by clicking the inverted triangle button next to it. Then expand Microsoft > Windows . And then scroll down to expand Windows Defender .

Step 3. Click on Operational and choose Clear log from the right panel.

clear log

Step 4. In the pop-up window, click Clear or Save and Clear to clear the log.

7 Ways to Open Event Viewer Windows 10 | How to Use Event Viewer
7 Ways to Open Event Viewer Windows 10 | How to Use Event Viewer

This tutorial offers 7 ways to open Event Viewer Windows 10, and introduces how to use Event Viewer on Windows 10.

Read More

Way 3. Using Windows PowerShell (Automatically)

Windows PowerShell is a command-line tool that is commonly used to automate system administration. Here you can set it to automatically clear Windows Defender protection history.

Step 1. Type Windows PowerShell in the Windows search box and right-click it to select Run as administrator .

Step 2. In the pop-up window, select Yes to allow this app to change your computer.

Step 3. Type this command: Set-MpPreference -ScanPurgeItemsAfterDelay N and press Enter ( N refers to the days after which you want the protection history to be automatically cleared).

For example, if you want the protection history to be automatically cleared after 5 days, you need to type this command line: Set-MpPreference -ScanPurgeItemsAfterDelay 5 .

type the correct command to clear protection history

Ways to Open Windows Programs and Features
Ways to Open Windows Programs and Features

You can open Windows Programs and Features tool to uninstall or change a program. Here are some useful ways to open this setting.

Read More

Way 4. Using Local Group Policy Editor (Automatically)

Local Group Policy Editor is a Microsoft Management Console (MMC) snap-in. You can configure and modify group policy settings through this tool. Also, it can help you clear protection history automatically.

Step 1. Press Windows + R keyboard shortcuts to open Run .

Step 2. Type gpedit.msc in the input box and press Enter .

type gpedit.msc

Step 3. Expand the following folders one by one: Computer Configuration > Administrative Templates > Windows Components > Windows Defender Antivirus .

Step 4. Under the Windows Defender Antivirus section, select Scan .

Step 5. On the right panel, double-click Turn on removal of items from scan history folder .

choose Turn on removal of items from scan history folder

Step 6. Select Enabled in the new window. Then set up the number of days that items should remain in the scan history folder before being permanently deleted, and click Apply .

enable automatic removal

Now, all operations have been done, and you won’t 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 professional data recovery software MiniTool Power Data Recovery is recommended to you. You can use this easy-to-use tool to get your deleted files back for free (No more than 1GB of data). For detailed steps, you can refer to this post: Windows Defender Deleted Files, How to Get Back Easily .

Free Download

Bottom Line

In a word, this article talks about how to clear protection history in Windows 10/11. You can choose your favorite way to clear it for the best computer performance. For more information about Windows Defender, welcome to visit MiniTool News Center .

  • Linkedin
  • Reddit