If you can’t delete a file because COM Surrogate has it open, close the preview rather than reaching for a force-delete command. In File Explorer, turn off the Preview pane, leave the folder, close any photo or video editor, and try again. The message usually means a process still holds the file, not that Windows has decided it can never be removed. First confirm you are deleting the right copy; a mistaken deletion creates a different problem from a temporary lock.
Why a preview can block a simple delete
Windows creates thumbnails and previews so you can recognize pictures and clips without opening each one. COM Surrogate, shown as dllhost.exe in some tools, can host components involved in that work. While a preview handler is reading a file, Windows may refuse to rename, move, or delete it. That refusal prevents one program from changing data another program is actively using. It is annoying during cleanup, but it does not prove the file is infected or corrupted.
The clue is timing. Does the message appear only when a folder contains images or videos? Does it go away after you navigate elsewhere? A stuck thumbnail handler is plausible. If the dialog names another app, such as Photos, a media editor, or a sync tool, follow that evidence instead of blaming COM Surrogate forever. Also check whether the file sits on a network share or synchronized folder; another computer or cloud client may hold it.
Before deleting, verify the filename, extension, size, and folder. Two exports may share almost the same name. A folder of raw camera originals is not the same as a folder of disposable preview copies. If you are unsure, copy the wanted version to a different healthy location and open that copy. Do not make “delete now, recover later” your filing system.
Release the lock without terminating system processes
Close the preview and the app that last opened it
In File Explorer, use View to hide the Preview pane. On many Windows versions, Alt+P toggles it. Change the folder to Details view if thumbnails keep loading. Then navigate to a different folder and close any editor, player, or photo viewer that recently used the file. Return and attempt the normal Delete action. If it works, check Recycle Bin before emptying it.
Restart Explorer or the computer if the handle lingers
Save open work first. In Task Manager, find Windows Explorer under Processes, select it, and choose Restart. The desktop and taskbar may briefly disappear and return. This refreshes the shell without indiscriminately ending every dllhost.exe process. If the file remains locked, restart Windows normally, avoid reopening the preview, and try deleting the exact item once. A successful deletion after a reboot points to a stale process handle rather than a damaged file.
Avoid websites that tell you to turn off COM Surrogate permanently or delete dllhost.exe. Those are not safe solutions to one locked thumbnail. If you encounter a suspiciously named process in an unusual location, use Windows Security for a malware check instead of removing system files by hand.
When the message persists, find the process actually holding the file
Microsoft PowerToys includes File Locksmith, which reports processes using a selected file or folder. Install it from Microsoft’s official source if you do not already have it. Open PowerToys and enable File Locksmith. In File Explorer, right-click the affected item, choose Show more options if necessary, and select Unlock with File Locksmith. Read the process list before ending anything. The Microsoft File Locksmith documentation describes this workflow and its limits.
If the list shows your photo editor, close that app in the normal way and retry. A backup or sync client should finish its current operation or be paused through its own controls. On a shared location, ask the other user to close the item. Ending a process can discard unsaved work, so do not click End task merely because the button exists. Administrator access may reveal additional handles, but it should not be your first move.
Sometimes a file appears locked even though the displayed process has exited. Reload File Locksmith, close and reopen Explorer, or reboot. If you still cannot delete it, write down the new dialog text. A permission error, path-length problem, read-only location, or damaged filesystem needs a different explanation. Treat a changed message as new evidence rather than another reason to repeat the same force operation.
Decide whether this is deletion, corruption, or a missing file
“File in use by COM Surrogate” is a lock problem. A file that will not open after the lock clears may also be damaged, but the lock did not establish that. A file you cannot find at all is a location or deletion problem. Keep those cases separate. For a file you still need, try opening its copy in the relevant app before deleting any version. For a folder that contains hundreds of files, test one representative item and avoid bulk deletion until you know the cause.
If you only need to reclaim space, consider whether the folder is managed by an application, game, or sync service. Removing its contents outside the app could break a project even if Windows allows the deletion. If a duplicate is truly expendable, the normal Recycle Bin gives you a chance to reconsider. The Recycle Bin recovery overview is useful when you deleted something that later turned out to matter.
Do not treat a thumbnail cache as your only backup. Its tiny images are not substitutes for full-resolution originals. If the deletion was part of a cleanup on a USB device, verify the correct device and any backup first. A transient lock is reversible. Formatting a device or clearing a folder tree to “get past” it may not be.
If cleanup deleted the wrong item, recover the original copy
Drecov is a Windows data-recovery program, not a COM Surrogate unlocker. Its role begins only if a wanted local file was deleted or became inaccessible during the cleanup. On a stable source device, it can scan the original location, offer Quick Scan and Deep Scan, help you find and preview supported photos, videos, documents, and other files, and save chosen results to another healthy location. It also has Lost Partition Recovery for a vanished partition, which is unrelated to an ordinary file lock. If a photo was actually deleted rather than locked, see the distinct photo recovery route.
⚠ Warning: Install it on a drive different from the one where your data was lost to prevent overwriting.
Stop writing new data to the affected partition. Check Recycle Bin and any versioned backup first; they may contain an easier complete copy. Do not install recovery software on the partition that held the deleted file. Prepare another healthy device for the output. A drive that disconnects repeatedly, clicks, or has severe read errors should not undergo repeated direct scans; seek imaging or professional help.
For supported Windows recovery modes and the current product interface, use the Drecov home page before starting. If the file still exists but Windows only refuses to delete it, return to the lock diagnosis instead of scanning for a deletion that never happened.
Step 1: Open Drecov and choose the file’s former location
Select the original Windows folder, volume, or connected device. Be specific: the Pictures folder on C: is not the same source as a USB import folder on E:. The file recovery page covers broader deletion cases, but choosing the right source remains the decisive first step here.

Step 2: Scan, locate, and preview
Run Quick Scan. If it misses the item and the device stays stable, run Deep Scan. Filter by file type and search for the filename or former path. Preview representative supported results, remembering that one preview does not prove a whole video or project is intact.

Step 3: Restore elsewhere and verify
Recover selected files to the prepared healthy destination, never to the source partition. If the output is not where expected, check Drecov Folder or Recovery Folder. Open the recovered file, inspect its contents, and keep it separate from the cleanup folder until you are certain you have the correct version. Drecov cannot guarantee recovery of data overwritten after deletion.

⚠ Warning: Install it on a drive different from the one where your data was lost to prevent overwriting.
A calmer cleanup plan for next time
When the immediate lock is gone, ask why it happened repeatedly. A single photo preview that held a handle for a few seconds is different from a folder that freezes Explorer every time. If the same media file consistently triggers the issue, preserve an original and test a copy in a different viewer. If the symptom began after installing a new codec or thumbnail extension, review that change. Do not remove several programs at once; otherwise you will not know which change helped.
Keep a separate, verified copy of files you care about before bulk cleanup. Check a few files at the backup destination, not only the total folder size. Delete in small groups, then review Recycle Bin before emptying it. This gives you a simple path back if an almost-identical filename fools you. For a machine shared with family or coworkers, make sure the other person is not still editing the item.
One locked file is usually manageable without dramatic system changes. Follow the message, release the preview, identify the actual process if necessary, and delete only after confirming that the selected copy is expendable. That approach protects your work and makes the error easier to diagnose if it returns.
Conclusion
If COM Surrogate blocks deletion, start with the preview pane and the app that last used the file. Move to File Locksmith only when the simple steps do not reveal the lock. Drecov has a different job: it can help retrieve a wanted file accidentally deleted during cleanup from a stable source to another healthy destination. It cannot release a process handle, so use it only when you truly have a file-loss problem.
⚠ Warning: Install it on a drive different from the one where your data was lost to prevent overwriting.








