Bottom Line: It is safe to clean out Windows Defender scan logs and definition update caches. Deleting these files does not disable your antivirus protection—it simply removes old scan history and obsolete virus definition downloads.
What is the Windows Defender Scans Folder?
Located at C:\ProgramData\Microsoft\Windows Defender\Scans, this system folder stores:
- Scan History & Detection Logs: Information about past quick/full system antivirus scans.
- Network & File History: Logs of scanned downloaded files.
- Definition Update Cache: Staged files from past Microsoft Security Intelligence definition updates (
C:\ProgramData\Microsoft\Windows Defender\Definition Updates).
In some Windows releases, a known bug caused Microsoft Defender to create millions of tiny files inside the Scans\History\Store subfolder, filling up SSDs with 5 GB to 10 GB+ of unnecessary log files.
Can You Delete Defender Scans Cache?
✅ Yes, it is completely safe to clean.
- Antivirus status remains active: Real-time protection, firewall, and active virus definitions stay 100% active.
- Frees space: Removing old scan history logs releases thousands of small files that slow down drive indexing.
How to Safely Clean Up Windows Defender Cache
Because C:\ProgramData\Microsoft\Windows Defender is protected by Windows Tamper Protection, you must follow the proper steps below.
Method 1: Clear Defender Scan History via Windows Security
- Open Windows Security from the Start Menu or system tray.
- Click Virus & threat protection > Protection history.
- Clear old alert history entries.
Method 2: Manual Clean Up via Command Prompt (Admin)
If thousands of files remain in the Scans folder:
- Open Start, search
cmd, right-click Command Prompt, and select Run as administrator. - Run the following command to clear obsolete Defender definition update cache:
"C:\Program Files\Windows Defender\MpCmdRun.exe" -RemoveDefinitions -All "C:\Program Files\Windows Defender\MpCmdRun.exe" -SignatureUpdate - This purges old accumulated signature files and instantly downloads the latest single active definition file.
Related Guides
- Learn about deleting [Antivirus Quarantine Folders].
- How to safely clean up [Windows Temp Files].
- Check if you can shrink WinSxS Store.
Discussion
Loading authentication...