Yes, you can remove an exclusion from Windows Defender in a few clicks, and the change applies right away: Defender goes back to scanning that file, folder, file type, or process. Once the entry is gone, Defender no longer skips that item.
The path on Windows 11 is Settings > Privacy & Security > Windows Security > Virus & threat protection > Manage settings > Add or remove exclusions. Click the entry, then click Remove. [1] To go further, see How to Add a File Exclusion in Windows Security.
This article walks through those steps on Windows 11 first, then notes what changes on Windows 10. It also covers what to know before you remove an entry, what to do when an exclusion won’t go away, and how to keep the list short.
What should you know before removing an exclusion?
Removing an exclusion is low-effort, but a few facts help you decide which entries to remove and what to expect afterward.
Excluded items are skipped
When you add an exclusion, you tell Defender not to scan a file, folder, file type or process. [2] That means anything inside an excluded location goes unchecked, even if it changes later. A forgotten entry is a standing gap in your protection.
Exclusions are often added to stop false alarms, especially in software development or gaming, where unusual code patterns can trigger them. [3] Once the reason is gone, the entry has no job left to do.
Good candidates for removal
Start with entries that no longer match how you use the PC:
Old project folders you finished or archived.
Tools or games you uninstalled, since their folders or processes may still be listed.
One-time fixes, such as a file you excluded to get a single installer to run.
If you still rely on an entry for current work, leave it alone until you know the file is safe.
What removal does and does not do
Removal only changes how Defender treats the item from now on. It does not bring back anything Defender already quarantined; if you need a file restored, that is a separate step from clearing the exclusion.
The flip side is that a file you excluded for a long time may be flagged the next time Defender scans it, particularly if the original alert was a real detection rather than a false positive.
Admin rights
You need to be signed in with an administrator account to change Defender’s exclusion list. On a standard account, the option may be unavailable or prompt for an administrator’s credentials. On a work or school PC, an administrator may control these settings for you.
How do you remove an exclusion in Windows 11?
Removing an exclusion takes about a minute in the Windows Security app. Here are the steps for Windows 11.
Press Win + I to open Settings, go to Privacy & Security, then click Windows Security. [1]
Click Virus & threat protection, then under Virus & threat protection settings click Manage settings. [1][4]
Scroll down to the Exclusions section and click Add or remove exclusions. [4]
Click the entry you want to remove (a file, folder, file type or process) to expand it, then click the Remove button that appears. [1][4]
If Windows asks for confirmation, approve it. The entry disappears from the list.
For example, if you excluded a folder called C:\OldProject for a tool you no longer use, click that folder in the list and choose Remove. The list then shows only the exclusions you still have.
Before you click Remove
Once an exclusion is gone, Defender scans that item again. Files in it may now be flagged or quarantined, especially if they were excluded because Defender objected to them in the first place. Make sure you no longer need the item excluded, and move or back up anything you would be upset to lose to a quarantine.
If you have several entries, remove them one at a time rather than all at once. That makes it easy to tell which removal caused a new alert.
What is different on Windows 10?
On Windows 10, you remove an exclusion the same way as on Windows 11. Only the starting point differs: you open Settings, then Update & Security, and then Virus & threat protection. [4]
The Windows 10 route
Click the Start button and select Settings. [4]
Click Update & Security. [4]
In the left-hand pane, click Virus & threat protection. [4]
Under Virus & threat protection settings, click Manage settings. [4]
Scroll down to Exclusions and click Add or remove exclusions. [4]
Click the entry you want to drop, then click Remove. [4]
From Manage settings onward, the route is identical to the one in the Windows 11 steps above: Manage settings, Exclusions, then Add or remove exclusions. The entry list looks the same too, so you can work through it the same way.
If the Remove button is grayed out
Some Windows 10 users report that the Delete option is grayed out and cannot be clicked for certain entries. One reader described entries that appeared after malware had switched Defender off, and which could not be removed from the Windows Security screen. [5] The registry-based fix for stubborn entries is covered in the troubleshooting section of this article.
Windows 10 has reached end of support
Windows 10 has reached end of support, so it no longer gets the regular updates it once did. If your PC can run Windows 11, consider upgrading. Until then, keeping your exclusion list short matters even more, because every skipped folder is one less place Defender checks.
Why won’t an exclusion go away?
If the Remove button is grayed out or an entry keeps coming back, the exclusion probably isn’t coming from the Windows Security page at all. Entries set by policy, or added by something other than you, can sit in the registry instead. One user in this situation reported that the Delete option was grayed out and could not be clicked. [5]
That same user found the exclusion paths in the registry and worried that deleting them might damage it. They had not added the entries themselves and suspected malware had created them. [5]
Where policy-set exclusions are listed
In Registry Editor, go to this location:
HKEY_LOCAL_MACHINE > SOFTWARE > Policies > Microsoft > Windows Defender > Exclusions > Paths
Another user with the same problem reported deleting all of the entries under this key, which cleared the list. [6]
Steps to try
Press Win + R, type
regedit, and press Enter.Browse to the Paths key shown above.
Right-click the Paths key, choose Export, and save the file somewhere safe. This is your backup.
Delete the entries you no longer want, then reopen Windows Security to see whether the list has changed.
Before you edit
Back up the key first, as in step 3. Registry edits take effect without a confirmation prompt, so an export gives you a way back if you remove the wrong entry.
If the PC belongs to your employer or school, an administrator may manage it. In that case, ask them to remove the exclusion, because a policy can put the entry back after you delete it.
If you never added an entry and its path names something unfamiliar, treat that as a warning sign. The user above traced theirs to malware that had disabled Defender, and some entries carried the malware’s own name in the path. [5]
Quick questions about Defender exclusions
Does removing an exclusion delete the file?
No. Removing an exclusion only takes the entry off the list, so Defender includes that item in future scans. The file or folder stays where it is. If Defender then flags something inside it, that is a separate action from the removal, and it is the reason you might see a file quarantined afterward.
Should I remove all exclusions?
Not necessarily. Remove the ones you no longer need, and keep the ones that stop a known false positive. Excluding a file or folder is common when Defender mistakenly marks it as harmful, which often happens in software development or gaming, where unusual coding patterns can trigger false alarms. [3]
A practical approach is to remove entries one at a time. If a folder you rely on starts getting quarantined again, you have found an exclusion that still matters, and you can add it back as a narrow entry. Clearing everything at once makes it harder to tell which item caused the problem.
How often should I review the list?
A review every few months is a sensible habit, and it is also worth checking after you uninstall a program or finish a project. This is a suggested routine rather than a Microsoft requirement. The list is quick to open: press Win + I, go to Privacy & Security, then Windows Security, click Virus & threat protection, and choose Manage settings > Add or remove exclusions. [1]
On that screen you can click any entry and then the Remove button that appears. [1] Look for old project folders, tools you no longer use, and one-time fixes. Each of those is a blind spot that Defender no longer needs to have. For more detail, see Windows Defender Keeps Deleting My File.
Keep your exclusion list short
Treat exclusions as temporary: once the reason for one is gone, remove it so Defender scans that item again. A short list leaves fewer blind spots, and it is easier to review.
If a tool or folder truly needs an exclusion later, add back only the narrowest one that solves the problem, such as a single file rather than a whole drive. Your next step is to open Add or remove exclusions today and clear out anything you no longer recognize. [1]
