Uninstall com0com Completely: Pairs, Driver Package and Ghost Ports

Removing com0com sounds trivial — it is one small driver — yet half-done uninstalls are behind a surprising number of serial-port mysteries: COM numbers that stay “in use” with nothing plugged in, a fresh install that inherits broken pairs, a device that reappears after you deleted it. Those are all leftovers of an incomplete removal. This guide removes com0com in the right order — pairs first, then the driver, then the ghosts — and shows you how to verify the machine is genuinely clean, whether you are leaving for good or preparing the clean reinstall that fixes stubborn problems.

Step 1 — Remove the port pairs first

Pairs are configuration, and they should be deleted while the driver’s own tools can still do it gracefully. Open SetupG, select each pair in the list and remove it, until no pairs remain. The command-line equivalent lives in the Setup Command Prompt: the remove command deletes a pair and list confirms the result — our setupc reference documents the exact syntax. Whichever tool you use, finish this step with an empty list:

command> list

If you are uninstalling in order to reinstall (the classic cure for post-update breakage), write down your pair configuration before deleting it — the port names you assigned, any renaming to COM numbers, and emulation settings such as EmuBR or EmuOverrun. Rebuilding takes minutes when the mapping is on paper and an afternoon when it is in your memory. Our post-update recovery guide explains when a clean reinstall is the right medicine.

Step 2 — Uninstall the driver itself

With the pairs gone, remove the software. The standard route is Settings → Apps → Installed apps, find the com0com entry, and uninstall it, following the package’s own uninstaller. The alternative route is Device Manager: find the com0com device, right-click it and choose Uninstall device; if Windows offers a checkbox to also delete the driver software for the device, tick it so the package does not silently come back. Run either tool as administrator — driver removal is an administrative operation and will refuse or half-complete without elevation. Reboot when finished; driver state settles at boot, and judging cleanliness before a reboot produces false alarms.

Step 3 — Check the Driver Store (usually optional)

Windows keeps installed driver packages in the Driver Store, and an uninstalled device’s package can linger there. For most people this step is unnecessary — a stored package does nothing on its own. It matters only if you are stuck in a loop where Windows keeps reinstalling the same driver state. Windows’ built-in tool lists the store’s packages:

pnputil /enum-drivers

The output names each stored package (Published Name, such as oem12.inf) with its provider and class. If a com0com package remains and you truly need it gone, it can be removed with pnputil by its published name — but treat this as a scalpel, not a broom: removing another device’s package by mistake will break that device, so only ever touch a package you have positively identified as com0com’s, and skip this whole step if you are in any doubt. It is not required for a clean reinstall.

Step 4 — Clear the ghost ports

Now for the step most uninstall guides skip, and the one that frees your stuck COM numbers. Windows remembers devices that are no longer present — including every virtual port com0com ever created — as hidden “ghost” entries, and those entries keep their COM numbers reserved. To see and remove them:

  1. Open Device Manager.
  2. From the View menu, select Show hidden devices.
  3. Expand Ports (COM & LPT) and the com0com / multiport sections.
  4. Greyed-out entries are not present — they are the ghosts. Right-click each greyed com0com port entry and choose Uninstall device.
  5. Work through the list until no com0com entries, present or ghosted, remain.

You can cross-check the result from the command line with pnputil /enum-devices, which lists device instances and their status; no com0com instance should report itself as present and started once removal is complete. A reboot after ghost-clearing is again worthwhile — port reservations are released as the device tree settles.

Freeing a COM number that stays “in use”

Sometimes Step 4 is overkill and your actual problem is narrower: you removed com0com long ago, but Windows still claims COM5 is in use and will not give it to a new device. That reservation is almost always a ghost entry holding the number — clear it as above. If you merely need to move a present port off a number (or confirm which numbers are marked used), use the standard Windows procedure: in Device Manager open the port’s Properties → Port Settings → Advanced, where the COM Port Number dropdown shows the assignments and which numbers Windows considers taken. Reassigning the present port there, or clearing the ghost that owns the number, are the two legitimate ways numbers come back — there is no registry edit you should be doing for this.

Verify the removal

  • Device Manager, with hidden devices shown, contains no com0com entries anywhere.
  • setupc list no longer runs or reports nothing — the tools went with the driver.
  • The COM numbers your pairs used are assignable again (Step 4’s Advanced dialog no longer marks them in use).
  • If Test Mode was enabled only for com0com, now is the time to turn it off — the command and its consequences are in the Test Mode guide.

Reinstalling cleanly afterwards

If com0com is not in the apps list — or keeps coming back

Two variations confuse people at Step 2. First: there is no com0com entry in Installed apps. That happens when the driver reached the machine through a manual INF/Device Manager installation rather than through the package’s setup program — there is no uninstaller entry because no setup program ever ran. The Device Manager route in Step 2 is then not the alternative but the method: uninstall the device there, tick the delete-driver option when offered, and continue with the ghost cleanup in Step 4 exactly as written. Second: the device reappears after uninstall and reboot. Windows found the still-stored driver package and reinstalled the device from the Driver Store — which is precisely the situation Step 3 exists for. Uninstall the device again with the delete-driver checkbox ticked; if it still returns, identify the package with pnputil /enum-drivers and remove that package (carefully, by its exact published name) before rebooting. A device that returns twice after its package is gone is no longer a com0com problem but a managed-machine policy reinstalling it — on a work PC, that conversation belongs with IT.

One scheduling tip for the whole procedure: do the removal in a single sitting — pairs, driver, ghosts, then the reboot — rather than spread across days. Stopping halfway leaves exactly the layered, half-present state this guide exists to clean up, and the next person to troubleshoot the machine (quite possibly you, in six months) will have to guess which steps were done. Fifteen uninterrupted minutes now is the entire cost of a machine that is verifiably clean.

A complete removal is the best possible starting point for a fresh install: no inherited pairs, no stale driver state, no reserved numbers. Install from the verified package on the download page following the Windows 11 install guide (Windows 10 readers: the Windows 10 guide), then recreate your pairs and rename them per your notes. If a brand-new install on this clean machine still produces Code 52, the problem was never leftover state — it is the signing situation itself, and the decision tree is the right next page.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *