Fix NS_E_CANNOT_REMOVE_PLUGIN (0XC00D1451) – Last Instance Error
You can't remove a plugin because it's the last one of its type. This happens in Windows Media Player or similar apps. Here's how to fix it fast.
What's the Deal with This Error?
You're in Windows Media Player or maybe another media app that uses plugins, and you try to remove one. Bam — you get the NS_E_CANNOT_REMOVE_PLUGIN (0XC00D1451) error. The message says: "It is not possible to remove the last instance of a type of plug-in."
This usually pops up when you've got only one plugin of a specific category left, like a single visualization plugin or a codec wrapper. The system won't let you yank it because it thinks you'll break something. But you know better — you want it gone.
Here's how to get rid of it. Start with the quick fix and move up if needed.
Quick Fix (30 Seconds): Just Disable It
If you don't need the plugin but don't care about deleting it entirely, just disable it. That stops the error and the plugin from running.
- Open Windows Media Player. If it's not pinned, hit the Start button and type "Windows Media Player" — click the result.
- Press Alt on your keyboard to show the classic menu bar. If you don't see it, press Ctrl + M instead.
- Click Tools in the menu bar, then click Plug-ins.
- Look for the plugin that's giving you the error. It might be listed under "Visualizations" or "Other Plug-ins."
- Uncheck the box next to it — that disables it. You won't see the error again, and the plugin won't load.
- Close and reopen Windows Media Player. After you do, check if the error's gone. It should be.
That's it. Simple, right? But if you actually want to delete the plugin, keep reading.
Moderate Fix (5 Minutes): Delete via Registry
Disabling works, but sometimes you want that plugin gone for good. The registry is where Windows keeps track of these plugins. You can delete the entry there.
Before we start: back up your registry. I've seen people break their player by deleting the wrong key. Don't be that person.
- Press Win + R, type
regedit, and hit Enter. If you get a UAC prompt, click Yes. - In Registry Editor, go to this path:
HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Preferences\Plugins - You'll see a list of GUIDs (long strings like {12345678-...}) — each one represents a plugin. Find the one you want to remove. Here's how: double-click each GUID and look at the right pane for the name. The plugin's name shows up in the "Name" or "DisplayName" value.
- Once you find the right GUID, right-click it and choose Delete. Confirm with Yes.
- Close Registry Editor. Restart Windows Media Player.
After restarting, the plugin should be gone. If it's not, you might need to refresh the plugin list. Go to Tools > Plug-ins again — the deleted one should no longer show.
One thing: this won't work if the plugin is built into Windows — like the default visualizations. For those, you need the advanced fix.
Advanced Fix (15+ Minutes): Uninstall the Plugin Package
Some plugins come as part of a larger package — like a codec pack or a third-party media tool. Deleting the registry key won't help because the app will just re-add it next time you run it. The real fix is to uninstall the whole package.
Here's what to do:
- Press Win + R, type
appwiz.cpl, and hit Enter. That opens Programs and Features. - Look through the list for anything that matches the plugin's name. Common culprits:
- K-Lite Codec Pack (includes visualization plugins)
- Realtek HD Audio Manager (adds audio effect plugins)
- Visualization Studio or similar third-party tools - Right-click the program and choose Uninstall. Follow the prompts.
- After it finishes, restart your computer. Don't skip the restart — some plugins leave dangling entries that need a reboot to clear.
- Open Windows Media Player again. Check if the plugin is gone.
If you still see it, you might have a leftover entry. Run the registry fix from the moderate section again — this time, the GUID should be easier to find because the base software is gone.
Last Resort: Reset Windows Media Player
Nothing worked? Let's reset the player completely. This clears all plugins and settings.
- Close Windows Media Player.
- Press Win + R, type
%appdata%\Microsoft\Media Player, and hit Enter. - Select everything in that folder and delete it. Windows will recreate the defaults next time you open the player.
- Open Windows Media Player. It'll take a minute to rebuild its library.
After this, the plugin you were fighting should be gone. If it's not, it's probably a system plugin tied to Windows itself — and you can't remove those without breaking other stuff. At that point, just disable it using the quick fix and move on with your day.
Why This Error Happens
The NS_E_CANNOT_REMOVE_PLUGIN error is a safety catch. Microsoft designed it so you don't accidentally remove the last decoding plugin and lose the ability to play certain file types. But it's too broad — it blocks removal even when the plugin is completely useless to you.
In my experience, this shows up most often with visualization plugins that come bundled with codec packs. People install a codec pack for video playback, and it adds a visualization they never use. When they try to delete it, they hit this wall.
Stick with the order above: disable first, then registry, then uninstall. You'll get it sorted.
Was this solution helpful?