Fix: Files Getting Deleted Automatically on Windows 11

Our experts recommend running System Restore in Safe Mode

Reading time icon 5 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team Read more

Key notes

  • Storage Sense is a new Windows feature that scans and removes old and temporary files.
  • Windows 11 can automatically delete files older than 30-60 days.
  • One of the recommendations includes running a CHKDSK scan. Don’t hesitate in trying the steps mentioned below.
Windows 11 automatically deleting files

Windows 11 has some fantastic features, one of them being automatic storage detection. This feature is designed to reduce storage usage and keep your system safe.

But as we know, the OS is prone to bugs and errors; there have been some incidents where the system starts deleting files without the user’s knowledge. This could be frustrating as sometimes it may delete an important presentation or file.

However, any Windows error can be fixed by following some troubleshooting methods. If you’re also facing this error, keep reading this post to learn how you can fix it.

Why are my files getting deleted automatically?

Storage Sense is a new Windows feature that scans and removes old and temporary files. For example, it will delete all unused and obsolete files when your device runs low on disk space.

For instance, Windows 11 can automatically delete files older than 30-60 days from Recycle Bin and deletes temporary files per the requirement.

Some common reasons why Windows 11 automatically deleting files errors might occur on your device are:

  • Corrupt system files
  • Issues with the hard drive
  • Pending system updates
  • Third-party application

How do I stop Windows 11 from automatically deleting files?

1. Run DISM Scan

  1. Click on Start and search for Command Prompt.
  2. Click on Run as Administrator.
    Windows 11 automatically deleting files
  3. Type the following command one by one and press Enter:
    DISM /Online /Cleanup-Image /CheckHealth
    DISM /Online /Cleanup-Image /ScanHealth
    DISM /Online /Cleanup-Image /RestoreHealth
    CheckHealth-1
  4. Restart your device and check if the error message still appears.

System image corruptions are also known to cause Windows 11 to automatically delete files. Running a DISM Scan will find and repair system image corruptions.

Windows and other critical issues may occur if your Windows operating system becomes corrupted. Opening programs becomes slower and response times increase. If you are running multiple applications, you may experience crashes and freezes. There can be numerous causes for this problem, including excessive startup entries, registry entries, hardware or RAM decline, fragmented files, and so on.

2. Run CHKDSK Scan

  1. Click on Start, search for Command Prompt, and select Run as Administrator.
  2. Type the following command and press Enter:
    CHKDSK C:/f/r/x
  3. The command wonโ€™t start running as your deviceโ€™s root drive is already in use. Instead, it will ask you to begin scanning when you restart your PC.
    Windows 11 automatically deleting files
  4. Type Y, press Enter, and then reboot Windows.

CHKDSK is a Windows program that checks and resolves system problems. For example, it verifies that the fileโ€™s size, location, and other details match the data on the hard disk. It also checks to see if any areas of the hard disk are corrupted, which might be the source of the problem.

3. Clean boot your PC

  1. Click on Start, search for system configuration and open it from the search results.
  2. Navigate to the General tab and check the Selective Startup and Load System Services options.
    Clean boot General
  3. Now navigate to the Services tab and check the option Hide all Microsoft services.
  4. Now click on Disable all at the bottom right corner and click on OK to save the changes.
    Clean Boot

Windows will start with a minimum set of required drivers and programs by performing a clean boot. In addition, it will ensure that a third-party or background program is causing Windows 11 automatically delete files.

Many users have also complained about Netio.sys BSOD Windows 10. If youโ€™re among those, read our post to fix it.

4. Run System Restore in Safe Mode

  1. Long press the Power button until the Automatic Repair message appears.
  2. Navigate to Troubleshoot, followed by Advanced options, and select Open System Restore.
    Windows 11 automatically deleting files
  3. Now, select your username and enter your password.
  4. Click on Next, and select a restore point before the Netio.sys BSoD error started. 
  5. Now follow the instructions on the screen to restore your PC.
    sys-restore-next

Changing your computerโ€™s settings or switching on a function can be why Windows deleting files automatically virus occurs. Youโ€™ll have to restore these settings to default to fix files getting deleted automatically when clicked.

5. Disable Storage Sense

  1. Press Windows + I to open Settings.
  2. Navigate to System and select Storage.
  3. Click on the Toggle Switch to turn off Storage Sense.
    turn off

If none of the abovementioned steps solved your problem, disable Storage Sense. Sometimes there is a problem with Windows core files that you cannot verify manually. Once you’ve disabled the feature, check if Windows 11 automatically deleting files is fixed.

How do I prevent accidental deletion in Windows?

  1. Right-click on the file or folder you want to hide and click on Properties.
  2. In the Properties window, navigate to the General tab.
  3. Select Hidden and click on OK.
    Windows 11 automatically deleting files

You can protect your files and folders by hiding them. By doing so, the hidden files won’t be accessible unless you hide them. This ensures the file doesn’t get deleted by mistake.

This was how you could fix Windows 11 automatically deleting files. We hope that the steps mentioned above were able to help you.

If you still have any issues, feel free to comment below.

More about the topics: data recovery, Windows 11