All the files got deleted except 4 that I will put in the screenshot.
Are these files responsible?
I have not run disk cleanup recently, nor CCleaner or Storage Sense is activated on my PC.

answers.microsoft.com
Files getting deleted automatically may be brought on by various reasons.
is the most recommended one.
It can alsoretrieve data from formatted USB flash drivesand inaccessible partitions.

To break this limitation, you’re free to choose MiniTool Power Data Recovery Personal Edition.
Now it’s possible for you to see the detailed steps to recover files deleted by Windows.
MiniTool Power Data Recovery FreeClick to Download100%Clean & Safe
Step 2.

Now you come to theLogical Drivesdata recovery module by default.
Wait for the scanning process to complete for the best scan result.
If you find the needed files, you’re able to also click thePauseicon to suspend it.

Here you might also throw in the file name in the search box and pressEnterto search for specific files.
With this feature, you could find needed files more quickly and save much time.
Preview found files to check whether they are the desired ones (supports previewing multiple types of files).
![]()
Then select all needed files and clickSaveto store them in a safe place separate from the original path.
And it is highly suggested to store them in another drive to prevent unexpected situations.
With MiniTool Power Data Recovery, I effectively recovered my files deleted by Windows automatically.

Solution 1.
PressWindows + Ikey combinations to access Windows prefs and clickUpdate & Security.
ClickWindows Defender>Open Windows Defender Security Center.

ClickVirus & threat protectionand then clickVirus & threat protection parameters.
Turn offReal-time protectionby unhighlighting the switch button under it.
ClickYesin the User Account Control window to apply this change.
![]()
This article put forwards several ways to fix the protection history not showing issue in Windows 10/11.
Solution 2.
Therefore, your files may get lost if you enable this feature.

To fix the Windows deleting files automatically issue, you canturn off Storage Sense.
Open Windows prefs and selectSystem.
Move on to theStoragetab and switch theStorage senseto off.

However, it only allows you to make changes with the temporary file deletion options.
Solution 3.
Scan for Malware
Sometimes viruses or malware on your system can also lead to automatic file loss.
![]()
In this situation, you gotta perform a full antivirus scan of your box usingantivirus.
It is used to back up your files, folders, systems, disks, and partitions.
And this data backup tool provides a 30-day free trial that lets you find out if it fits you.
![]()
you might grab the button below to free download it.
Bottom Line
Is the problem of Windows deleting files automatically solved now?
Try using the above troubleshooting ways to stop Windows from deleting files.