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.
“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:
- Press Ctrl + Shift + Esc to open Task Manager.
- In Processes, find COM Surrogate. There may be more than one.
- Right-click each and choose End task.
- Delete the file again straight away.
Ending COM Surrogate is safe. Windows starts it again when needed.
COM Surrogate Fix Finder
Pick what matches.

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
Fix 1: Close the preview and retry
- In File Explorer click View > Show and untick Preview pane and Details pane. The shortcut for the preview pane is Alt + P.
- Click on empty space so the file is not selected.
- Wait 10 seconds and delete again.
Fix 2: End COM Surrogate
Use the quick answer steps, or do it in one line from Terminal:
taskkill /f /im dllhost.exeWorked if: the file deletes right after. If the lock returns at once, go to Fix 4 or Fix 5.
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.
Fix 4: Turn off thumbnails
- In File Explorer click the three dots and choose Options.
- Open the View tab.
- Tick Always show icons, never thumbnails and click OK.
- Delete the files, then untick the box again if you want thumbnails back.
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.
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.
- Press Windows + R, run appwiz.cpl.
- Uninstall codec packs and thumbnail tools you added, such as K-Lite Codec Pack, Icaros or old video and photo software.
- Update your graphics driver, since video thumbnails use it.
- 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: /fsfc /scannowWhat 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.
Axee Davies is the founder of AxeeTech, publishing gaming guides, codes, and Windows how-tos since March 2013. A tech enthusiast for 13+ years — starting with smartphones and Android rooting — he now runs a site that puts out a new guide every day for Roblox players, traders, and Windows users. More about AxeeTech
More Guides You May Like
The Essential Guide to vga_intel_6.14.10.4814_xpx86xpx64_a.zip: Legacy Graphics Support for Gateway Laptops
mmsys.cpl: Open the Classic Sound Control Panel in Windows 11/10 (Every Command)
Windows 11 Update “Something Went Wrong”? 7 Fixes That Work
Zebra Printer Not Printing? 7 Fixes for Blank, Skipped and Stuck Labels
Print Spooler Keeps Stopping in Windows 11/10? 7 Fixes
Wi-Fi Option Not Showing in Windows 11? 7 Fixes to Get It Back
Windows Security Not Opening in Windows 11/10? 7 Fixes