How to Stop Windows 10 Deleting Files Automatically

Updated by Brithny on Jan 18, 2022
Written by Tracy King
 | Computer Instruction

on this page, you'll find handy solutions to restore deleted files on Windows 10 and stop Windows 10 from deleting files without asking.

Workable Solutions Step-by-step Troubleshooting
Fix 1. Stop Windows Defender Open Windows Defender > click Virus & Threat protection > click Exclusions...Full steps
Fix 2. Turn off Storage Sense Go to Settings > System > Storage > toggle Storage Sense to "Off"...Full steps
Fix 3. Uninstall faulty updates Open Control Panel > click Programs and Features > click View Installed Updates...Full steps

Q: Windows Defender Keeps Deleting Files

"Hi, I'm having an issue that my computer is automatically deleting files without asking me for confirmation. I use some programs with .exe extension. But Windows defender reads those as a virus, and it deletes them while I still want them! How do I stop Windows defender from deleting files that I want to keep?" 

Are you having the same issue that Windows defender keeps deleting files, such as downloaded videos, documents, or .exe programs? Or is your Windows 10 automatically deleting downloaded files and data without asking for confirmation? Although it sounds senseless, it is true. Windows 10 may keep deleting programs and documents after restart because of the defender or the new storage sense feature in Windows 10. But, you don't have to worry since you can easily recover deleted files Windows 10 using a professional data recovery tool, after that, you can use the helpful methods demonstrated below to stop Windows from deleting files automatically.

If you've got important files deleted by Windows 10, which you can restore from nowhere, go to Part 1 and recover those lost files first. And then You can follow Part 2 with provided methods to stop Windows 10 from deleting your files without asking your permission or giving any notification.

Part 1. Restore Files Deleted by Windows 10 

If your important files got removed or deleted by Windows 10 and you can't get them back anyhow, don't worry. One of the best file recovery software - EaseUS Data Recovery Wizard can simply recover your lost files within three steps. It allows you to restore files deleted from the recycle bin, HDD, SSD, USB flash drive, external hard drive, digital camera, and more. 

Now, download and install this software on your PC and follow the next steps to restore the removed files deleted by Windows 10.

 Download for Win Recovery Rate 99.7%
 Download for Mac Trustpilot Rating 4.6

Step 1. Launch EaseUS Data Recovery Wizard in Windows 11/10/8/7 and choose the place where you lost data. Then, click "Scan".

select a location to scan

Step 2. After the scan, use the file format filter on the left or upper right corner to find the files you need. Then, you can click the "Preview" button or double-click a file to preview its content.

Choose files to recover

Step 3. Click the checkbox next to the file and click "Recover" to get back the lost data to a secure place.

Recover lost data

Part 2. Fix Windows 10 Automatically Delete Files Error

After getting all your lost files deleted by the Windows system, now you can follow solutions here to fix Windows 10 from deleting files problem. 

Method 1. Stop Windows Defender from Deleting Files Automatically

1. Open "Windows Defender" > Click on "Virus & threat protection".

Stop Windows Defender deleting files in Windows 10.

2. Scroll down and click "Virus & threat protection" settings.

Set Defender to stop deleting files.

3. Scroll down to "Exclusions" and click "Add or remove exclusions".

4. Click + plus icon to add an exclusion and select File, Folder, File Type, or Process, then specify the exact files, folders, or even file types that you don't want to get them deleted or removed by Windows Defender.

Stop Windows Defender deleting files on Windows 10.

5. Save all changes. If you don't want Windows Defender to remove the .dll files, click "File Types" and type in the .dll and .exe file extension, click "Add". After this, those files that you’ve set to be excluded won’t be removed or deleted again. 

Method 2. Turn off Storage Sense to Stop Windows 10 Deleting Files Automatically

Storage Sense in Windows 10 is a new feature. When you enable it, Windows will automatically delete unused files when the computer is low on disk space. For instance, it can automatically delete files older than 30 or 60 days from the Recycle Bin or delete temporary files to free up some space. It also can delete older files in the Downloads folder.

But If you don't want the Storage Sense to delete files by itself, you can change its default settings to prevent Windows 10 from automatically deleting files when you want to keep them

Step 1. Open the "Settings" app. Click the "System" > "Storage". You can flip the Storage Sense switch to "Off".

stop Windows 10 deleting files automatically - storage sense

Step 2. If you don't want to disable this feature totally, you can re-configure Storage Sense by click "Change how we free up space automatically".

Step 3. Click the box under "Delete files in my recycle bin if they have been there for over"  and select "Never". Also, click the box under "Delete files in my Downloads folder if they have been there for over" and choose "Never".

stop Windows 10 deleting files automatically - set storage sense

Method 3. Uninstall Faulty Updates that Delete Files on Windows 10

As we all know that sometimes the newly installed Windows system would remove or delete files on the computer without asking you for permission. It seems that if you’ve installed an incompatible or faulty Windows 10 update, it will remove or delete your files on PC. SO the most straight-forward way is to uninstall the faulty updates that remove files on your Windows 10 computer.
Here are the detailed steps about how to uninstall faulty updates:

Step 1. Press Windows + X keys and select "Control Panel".

Uninstall faulty update that deletes files on Windows 10.

Step 2. Click "Programs and Features" and select "View Installed Updates".

Stop Windows 10 deleting files without asking.

Find faulty update that removed files on Windows 10.

Step 3. Click the "Installed On" column header to sort the updates by dates.

Step 4. Locate and right-click on the large-sized, major updates that you’ve recently downloaded, and select "Uninstall".

Uninstall faulty update that removes files on Windows 10 PC.

Step 5. When the uninstall process completes, reboot your PC.

PS: If you want to install the latest Windows 10 update, you can refer to Microsoft Windows 10 update official website to download Windows 10 ISO and install it on your PC then.

Was This Page Helpful?