Windows Defender is pretty much the only antivirus tool you will ever need on your operating system, as it does a decent job of identifying threats without all the bloatware other software has. The only problem with Windows Defender is that it can be a little overprotective and sometimes a little sneaky. For example, if you download a zip file, then extract it, Defender will instantly remove any files it thinks might be a danger to you and your system. So if you are noticing that some of your downloads are missing files, this guide will show you how to stop Windows Defender from removing files without you knowing.

Takeaways:

  1. Why are some files missing from a zip folder after extracting them?
  2. Windows Defender removing files from Zip files?
  3. How to stop Windows Defender from removing stuff from Zip files.

Does Windows Defender Really Delete Files?

Yes. When Microsoft Defender identifies a file as malicious, it either moves it into quarantine or deletes it entirely. This is why you may notice missing files immediately after extracting them from a compressed folder. Defender scans inside ZIP, RAR, and other archives, and will automatically remove flagged content as soon as you attempt to open or extract it. If the file is safe and important to you, you can take steps to restore it and prevent it from being deleted again. This behaviour is why a lot of zip files now come with a password to prevent Windows Defender from removing certain files before they are even unzipped.

How to Stop Windows Defender From Deleting Files Automatically

If a file has disappeared, check Protection History in Windows Security. Quarantine is a secure storage where flagged items are kept temporarily. To restore:

  • Open Windows Security from the Start menu.
  • Go to Virus & threat protection and select Protection history.
  • Use the filter to show Quarantined items.
  • Find the file, expand the details, and click Restore.

This immediately returns the file to its original location. If the same file keeps disappearing, you’ll need to set up exclusions.

Add an exclusion Location

Adding exclusions prevents Defender from scanning or deleting specific files, folders, or file types. But be very cautious, only exclude items you trust completely, since exclusions bypass Defender’s protection.

  • Open Windows Security.
  • Select Virus & threat protection, then click Manage settings under Protection settings.
  • Scroll to Exclusions and choose Add or remove exclusions.
  • Click Add an exclusion, then select File, Folder, or File type.

Windows Defender removing file from zip folders

Temporarily disable real-time protection

If you need to install or open a file that keeps vanishing, you can pause Defender temporarily.

  • Open Windows Security.
  • Navigate to Virus & threat protection > Manage settings.
  • Turn off Real-time protection.

Stop Windows defender deleting my files automatically

Once disabled, quickly extract or install the file. Remember to turn real-time protection back on afterwards to keep your system secure.

Configure exclusions via Group Policy (Not Available on Windows Home)

In professional or organisational environments, Defender policies may be enforced by Group Policy. You can configure exclusions here:

  • Open the Group Policy Editor (gpedit.msc).
  • Go to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus > Exclusions.
  • Enable Path Exclusions or Extension Exclusions, then list the files or formats you want to protect.