What to do if Windows 10 Defender deleted my files

Windows OS comes with built-in antivirus protection called Windows Defender. If the security program is configured to detect and remediate threats on your device, Windows Defender Antivirus will quarantine suspicious files.
However, at times Windows Defender may delete the files that are not necessarily a threat. If you are sure that the files deleted by Windows Defender are not a threat or you have a use for them, then you may want to restore the deleted files.
Here’s the problem one Windows 10 user shared on Microsoft Answers.
Windows Defender is constantly deleting my files WITHOUT my permission. Due to that I have suffered a lot of data loss. Even if I turn the real time protection off, it turns back on automatically and deletes my files. It is not even adhering to the exclusions I have made.
Restore your files by following the steps below.
How do I stop Windows Defender from deleting files on Windows 10?
1. Restore Quarantine Items
- If you are using a newer version of Windows Security, here is how to find the Quarantined Threats.
- Open Windows Security.
- Open Virus and Threat Protection and click on Threat History.
- Under “Quarantined threats” click See full history.
- Now look for the item you want to restore and click on Restore.
- Later, you can navigate to Virus & threat protection > Virus & threat protection settings > Exclusions and whitelist files to prevent Windows Defender from deleting them again.
Alternatively, do the following if you can’t find the Quarantined Section.
- Open Virus and Threat Protection and under Current Threats, click on Scan Options.
- Check under “Quarantined Threats” for your removed files.
- Here you can delete or restore any removed files with ease.
Looking for the best antivirus without false positive alerts? Here are the best options
2. Restore Quarantine with Command Line
- Type cmd in the search box.
- Right-click on Command Prompt and select “Run as Administrator”.
- In the command prompt, navigate to the following Windows Defender folder by typing the following command.
cd C:\Program Files\Windows Defender - Next, type the following command and press enter.
dir *.exe - In the Command Prompt type the following command press OK.
mpcmdrun -restore -listall - This will list all the quarantined items in your system.
- Now enter the following command and hit enter.
mpcmdrun -restore -all - This will restore all the quarantined items from the list to its earlier destination.
- That’s it. You have successfully restored all the quarantined items by the Windows Defender.
RELATED STORIES YOU MAY LIKE:
- Full Fix: Windows Defender service won’t start on Windows 10
- Fix: Windows Defender won’t turn on in Windows 10
- Full Fix: Windows Defender is deactivated by Group Policy
Still having issues? Fix them with this tool:
SPONSORED
If the advices above haven't solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on TrustPilot.com) to easily address them. After installation, simply click the Start Scan button and then press on Repair All.