Configure Removal Of Items From Quarantine Folder For Microsoft Defender

In this article, learn how to configure removal of items from Quarantine folder for Microsoft Defender in Windows 10.

Kapil Arya
11x Microsoft MVP · Admin
2 min read
Add as a preferred
source on Google

Whenever Microsoft Defender detects a suspicious file on your system, then it immediately moves that file to Quarantine folder. By isolating that file, Microsoft Defender prevents the spread of the virus, if it is contained in that file. If there is a false positive about the suspicious file we can easily move it out of the Quarantine folder. However, the file moved to Quarantine folder may remain there forever. So if you want to configure automatic removal of files in Quarantine folder, then this article is for you.

Configure Removal Of Items From Quarantine Folder For Microsoft Defender

Follow the below methods and configure the automatic removal of items from Quarantine folder after the specified days.

Configure Removal Of Items From Quarantine Folder For Microsoft Defender

Method 1 – Via Group Policy

1. Open GPO Editor by running gpedit.msc in Windows client edition and by using gpmc.msc command in Windows Server.

2. Next, open the GPO Editor window, navigate here:

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

Note: You should have Policies folder after Computer Configuration, if you’re on Windows Server.

Configure Removal Of Items From Quarantine Folder For Microsoft Defender

3. In the right pane of Quarantine folder, look for the policy setting named Configure removal of items from Quarantine folder. Double click on the policy setting to modify its status:

Configure Removal Of Items From Quarantine Folder For Microsoft Defender

4. Set the setting to Enabled. Then under Options, type in the number of days after which items will be removed from Quarantine folder. Click Apply, OK.

5. Close Group Policy Editor and run gpupdate /force to make changes effective.

Method 2 – Via Registry

Registry Disclaimer: It is recommend to create a System Restore point first, before editing registry.

1. Open Registry Editor.

2. Locate the HKEY_CURRENT_USER\Software\Microsoft\Office\Teams registry key.

3. Create/edit registry DWORD (REG_DWORD) named PurgeItemsAfterDelay.

Configure Removal Of Items From Quarantine Folder For Microsoft Defender

4. Double click on that registry DWORD and select Decimal base first. Then type Value data as number of days after which items will be removed from Quarantine folder. Click OK.

5. Close Registry Editor and reboot.

That’s it!

Share this article
https://www.kapilarya.com/configure-removal-of-items-from-quarantine-folder-for-microsoft-defender

Shareable URL

Article by

Kapil Arya
11x Microsoft MVP · Admin

Kapil holds Microsoft MVP title in Windows IT Pro expertise, 11-times in a row (2014-2025). He is 8-times Windows Insider MVP as well, and author of 'Windows Group Policy Troubleshooting' book. In 2015, Microsoft India accomplished him as 'Windows 10 Champion'. Being passionate Windows blogger, he loves to help others on fixing their system issues. Kapil has worked with official Microsoft Community Engagement Team (CET) on several community projects. You can subscribe him for news/updates and fixes for Windows.

Leave a Comment

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