Defender in windows 11 deleted a file and protection history is empty, how to restore ? and how to make it quarantine the file instead of deleting ?
If the file was fully deleted (cannot be found in the Recycle Bin), your only option, if you don't have a backup, is to use a data-recovery program to find and restore the file.
The best recovery programs are commercial, but here are a couple of free trial products:
The only way I know for preventing Defender from deleting files is to add an exclusion of the folder or file in question. This is done in Settings > Update & Security > Windows Security > Virus & Threat protection > Manage Settings, under Exclusions, by clicking on Add or remove exclusion.
Look in Windows Defender quarantine. The file may be there.
If it was WD that deleted the file, and if not in the WD quarantine, then unfortunately it is gone.
That happens for some files that WD sees as serious threats.
Your only option in this case would be to try recovering the file with recovery utilities.