Unable to clear protection history manually in windows defender security center in Windows 10 version 1903

Please any body help me with a proper solution.

* Moved from Win 10/Security

 

Question Info


Last updated December 11, 2019 Views 21,170 Applies to:
Answer
Answer

Specifies the number of days for which items are stored in the scan log folder. After this time, Windows Defender deletes the items. If you specify a null value, Windows Defender will not remove items. If you do not specify a value, Windows Defender will remove items from the default scan log folder, that is, 30 days.

You can specify a different delay period (in days) by running this command on the PowerShell administrator command line:

Set-MpPreference -ScanPurgeItemsAfterDelay 3

* 3 is the number of days after which the protection log and items in the log folder will be cleared.

40 people were helped by this reply

·

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Answer
Answer

If you need to delete now.

Delete folder Service   C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service .

After deleting the folder Service,  off and turn on (OFF>ON)  Real-Time protection  and  Cloud protection. 

109 people were helped by this reply

·

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.