COM Surrogate Delete File Error: 8 Fixes for “File Is Open in COM Surrogate” (Windows 11/10)

The COM Surrogate delete file error stops you deleting, moving or renaming a file because Windows is still using it for a thumbnail. Here are eight fixes, starting with the quickest.

Quick answer

“The action can’t be completed because the file is open in COM Surrogate” means Windows is still reading the file to draw its thumbnail or preview. Release it like this:

  1. Press Ctrl + Shift + Esc to open Task Manager.
  2. In Processes, find COM Surrogate. There may be more than one.
  3. Right-click each and choose End task.
  4. Delete the file again straight away.

Ending COM Surrogate is safe. Windows starts it again when needed.

COM Surrogate Fix Finder

Pick what matches.

Chart of four quick fixes for a file that is open in COM Surrogate
Save this chart: the four quick fixes.

What COM Surrogate is

COM Surrogate is the friendly name of dllhost.exe, a Windows program in C:\Windows\System32. File Explorer uses it to run add-ons outside of itself, mainly the code that makes thumbnails and previews for pictures, videos and documents. If one of those add-ons crashes, only COM Surrogate goes down and Explorer keeps running. The price is that the helper sometimes holds on to a file a little too long, and you get this message.

It is not a virus. Several copies running at once is normal. We counted three on our own PC while it was idle.

The 8 fixes

10 secondsStart here

Fix 1: Close the preview and retry

  1. In File Explorer click View > Show and untick Preview pane and Details pane. The shortcut for the preview pane is Alt + P.
  2. Click on empty space so the file is not selected.
  3. Wait 10 seconds and delete again.
20 seconds

Fix 2: End COM Surrogate

Use the quick answer steps, or do it in one line from Terminal:

taskkill /f /im dllhost.exe

Worked if: the file deletes right after. If the lock returns at once, go to Fix 4 or Fix 5.

20 seconds

Fix 3: Restart Windows Explorer

In Task Manager, right-click Windows Explorer and choose Restart. This closes every Explorer window and the handles they held.

1 minuteStops repeats

Fix 4: Turn off thumbnails

  1. In File Explorer click the three dots and choose Options.
  2. Open the View tab.
  3. Tick Always show icons, never thumbnails and click OK.
  4. Delete the files, then untick the box again if you want thumbnails back.
Advanced

Fix 5: Delete from the command line

The command line does not make thumbnails, so nothing grabs the file. Close File Explorer windows first. Right-click the file’s folder background, choose Open in Terminal, and run this with the real file name in the quotes:

cmd /c del /f "file name.jpg"

There is no Recycle Bin for this. The file is gone at once, so check the name.

Fix 6: Delete in Safe Mode

Go to Settings > System > Recovery > Advanced startup > Restart now, then Troubleshoot > Advanced options > Startup Settings > Restart and press 4. Third-party add-ons do not load in Safe Mode, so the file is free. Delete it and restart normally.

If it keeps happening

Fix 7: Remove codec packs and shell add-ons

Repeated locks and “COM Surrogate has stopped working” come from a faulty add-on running inside it.

  1. Press Windows + R, run appwiz.cpl.
  2. Uninstall codec packs and thumbnail tools you added, such as K-Lite Codec Pack, Icaros or old video and photo software.
  3. Update your graphics driver, since video thumbnails use it.
  4. Restart.

Fix 8: Check the disk and Windows files

A damaged file can hang the thumbnail maker every time. In Terminal (Admin), replacing D: with the drive that holds the file:

chkdsk D: /f
sfc /scannow

What we checked and what we did not

On our own Windows 11 PC, dllhost.exe is in C:\Windows\System32 (version 10.0.26100.9818) and three copies were running with nothing wrong, which is the normal state. No file was locked on that PC, so we could not reproduce the error or time the fixes. A dllhost.exe found in any other folder is not the real one and should be scanned with Windows Security.

Which fix let you delete the file?

One tap. It helps the next reader start with the right fix.

Frequently asked questions

Is COM Surrogate a virus?

No. It is dllhost.exe, a Windows component. The real file is in C:\Windows\System32.

Is it safe to end COM Surrogate in Task Manager?

Yes. Windows starts it again when it is needed. At worst a thumbnail takes a moment longer to appear.

Why is my file open in COM Surrogate?

File Explorer is using it to build a thumbnail or preview for that file and has not let go yet.

Why are there several COM Surrogate processes?

Windows starts one for each add-on it needs to run separately. Several at once is normal.

More Guides You May Like

Leave a Reply

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