Solve 'The action can't be completed because the file is open in COM Surrogate': COM Surrogate File Lock Issue in Windows
Table of Contents
When deleting files in Windows, the issue of COM Surrogate (dllhost.exe) locking files can arise, preventing their deletion. The error message is ‘The action can’t be completed because the file is open in COM Surrogate’.
Restart Explorer
- Open Task Manager (
Ctrl+Shift+Esc). - Find and select
Windows Explorerin the Processes tab. - Click
Restartat the bottom right.
End COM Surrogate Processes
- Open Task Manager (
Ctrl+Shift+Esc). - Look for
COM Surrogateordllhost.exeprocesses in the Processes tab. - Select each
COM Surrogateprocess and clickEnd Task.