{"id":12989,"date":"2026-02-16T12:50:26","date_gmt":"2026-02-16T12:50:26","guid":{"rendered":"https:\/\/howtogeek.blog\/nl\/?p=12989"},"modified":"2026-02-16T12:50:26","modified_gmt":"2026-02-16T12:50:26","slug":"how-to-resolve-the-this-action-cannot-be-completed-because-the-file-is-open-error","status":"publish","type":"post","link":"https:\/\/howtogeek.blog\/nl\/how-to-resolve-the-this-action-cannot-be-completed-because-the-file-is-open-error\/","title":{"rendered":"How To Resolve the &#8220;This Action Cannot Be Completed Because the File Is Open&#8221; Error"},"content":{"rendered":"<h2>How to Fix \u201cThis action cannot be completed because the file is open\u201d Error<\/h2>\n<p> Dealing with that annoying \u201cThis action cannot be completed because the file is open\u201d message can be a huge pain, especially when you\u2019re trying to delete, move, or rename a file but Windows just won\u2019t let you. Usually, it\u2019s because some process or app still has the file locked in the background. Sometimes, even when you close everything, Windows or Explorer gets a bit twitchy and keeps the file in some kind of limbo. The good news is, there are a handful of ways to untangle this mess without tearing your hair out. These fixes basically help you identify what\u2019s holding the file hostage and free it up so you can finally do whatever you need. Once the process is ended or the cache cleared, modifying your file should be smooth sailing again. So, if you\u2019re tired of seeing that error pop up, here\u2019s some stuff to try\u2014ranging from the quick and easy to a little more involved.<\/p>\n<h2 id=\"causes-of-this-action-cannot-be-completed-because-the-file-is-open-error\">Causes of \u201cThis Action Cannot Be Completed Because the File Is Open\u201d Error<\/h2>\n<p> This problem usually boils down to the file still being \u201cin use\u201d somewhere in the background. Sometimes it\u2019s obvious (like a media player still playing that movie), but other times, Windows doesn\u2019t realize the file is locked. Here\u2019s what typically causes it: <\/p>\n<ul>\n<li><strong>System File:<\/strong> Trying to delete core Windows files is a no-go unless you\u2019re advanced enough to handle registry tweaks or booting from recovery. These files are usually protected for good reason.<\/li>\n<li><strong>File in Use:<\/strong> Even when you close an app, some processes might still be holding onto that file. Background apps or services sometimes keep a hold, and Windows sees it as &#8220;in use.&#8221;<\/li>\n<li><strong>Windows Explorer Isn\u2019t Working Properly:<\/strong> If explorer.exe is glitchy, it might make files look \u201cin use\u201d even if they\u2019re not. Restarting explorer often helps to clear that up.<\/li>\n<li><strong>Thumbnails &amp; Cache:<\/strong> Windows creates thumbnail previews and caches them for quicker access. Sometimes, these cached thumbnails keep files \u201clocked\u201d or in some limbo state.<\/li>\n<li><strong>Preview Pane<\/strong>: When you have the preview pane enabled in File Explorer, it can sometimes make Windows think the file is still active or in use. Turning off the preview pane can fix this.<\/li>\n<li><strong>Antivirus Software:<\/strong> During a scan or quarantine process, files might be held in a temporary safe mode, preventing changes until the scan is finished or the quarantine is cleared.<\/li>\n<\/ul>\n<h2 id=\"fixes-for-this-action-cannot-be-completed-because-the-file-is-open-error\">Fixes for \u201cThis Action Cannot Be Completed Because the File Is Open\u201d Error<\/h2>\n<p> Not everyone needs full-blown technical skills for these, but some steps will involve digging into task managers or command lines. Here are some of the most reliable methods\u2014pick whichever feels less intimidating or more applicable to the issue you\u2019re facing.<\/p>\n<h3 id=\"close-the-file-through-resource-monitor\">Close the File Through Resource Monitor<\/h3>\n<p> This is a decent first shot because it pinpoints exactly what process is holding your file hostage. Plus, it avoids rebooting or messing around too much. You might think \u201chow do I find what\u2019s locking my file?\u201d Well, Windows\u2019 Resource Monitor can tell you if some process still has a handle on that file. Here\u2019s the typical flow: <\/p>\n<ul>\n<li>Press <strong>Windows + R<\/strong> to open the Run box.<\/li>\n<li>Type <code>resmon<\/code> and hit <strong>Enter<\/strong>. This opens Resource Monitor.<\/li>\n<li>Switch over to the <strong>CPU<\/strong> tab.<\/li>\n<li>In the \u201cAssociated Handles\u201d search box, type the exact filename or part of it (like the extension, e.g., &#8220;.mp4&#8221;).<\/li>\n<li>It will list processes that have a handle on that file. Select all relevant processes.<\/li>\n<li>Right-click and choose <strong>End Process<\/strong>. You might see a warning about closing processes, but just do it\u2014sometimes it\u2019s needed to unlock your file.<\/li>\n<\/ul>\n<p> After that, the file usually gets freed up. Try your delete or move again. Sometimes, on some setups, you\u2019ll need to repeat this if the process relapses or sneaky processes pop up again.<\/p>\n<h3 id=\"restart-windows-explorer\">Restart Windows Explorer<\/h3>\n<p> Explorer.exe sometimes gets glitchy and keeps files \u201clocked\u201d even after you\u2019ve closed everything. Restarting it resets the user interface and clears some of those phantom locks. To restart Windows Explorer: <\/p>\n<ul>\n<li>Open <strong>Task Manager<\/strong>. On Windows 10 and newer, hit <strong>CTRL + Shift + Esc<\/strong>. On Win7, it\u2019s similar.<\/li>\n<li>Find <strong>Windows Explorer<\/strong> in the list. On Win10, click <strong>More Details<\/strong> if you see a simplified view.<\/li>\n<li>Right-click and select <strong>Restart<\/strong>. This should refresh Explorer, close any stuck processes, and release the file lock.<\/li>\n<\/ul>\n<p> On Win7, it\u2019s a bit different: you end the explorer.exe process, then go to <strong>File &gt; New Task<\/strong>, type <code>explorer.exe<\/code>, and press Enter to restart it.<\/p>\n<h3 id=\"reboot-in-safe-mode\">Reboot in Safe Mode<\/h3>\n<p> Sometimes, a full clean boot is needed because some app or process persists even after closing everything normally. Safe Mode loads Windows with the bare essentials, which is perfect for fixing stubborn file locks. To do it: <\/p>\n<ul>\n<li>Press <strong>Windows + R<\/strong>, type <code>msconfig<\/code>, and hit Enter.<\/li>\n<li>In the <strong>Boot<\/strong> tab, check <strong>Safe Boot<\/strong> and click <strong>Apply<\/strong>.<\/li>\n<li>Reboot your PC. Now, try to delete or move that troublesome file in Safe Mode.<\/li>\n<\/ul>\n<p> Just remember, Safe Mode disables some drivers and background services, so don\u2019t get too fancy with apps when you\u2019re expecting a fix.<\/p>\n<h3 id=\"deleting-temp-files\">Deleting Temp Files<\/h3>\n<p> Temp files can sometimes hang onto your files or cause lock issues. Clearing temp data might free up enough space or remove cache locks. To clear temp files: <\/p>\n<ul>\n<li>Press <strong>Windows + R<\/strong>, type <code>%temp%<\/code>, and Enter.<\/li>\n<li>Highlight all the files (<strong>CTRL + A<\/strong>), then delete them with <strong>Shift + Del<\/strong> to skip the recycle bin.<\/li>\n<li>A few files might refuse to delete if in use\u2014ignore those for now, and try again later.<\/li>\n<\/ul>\n<p> Repeated temp cleaning can fix a bunch of odd Windows lock-ups.<\/p>\n<h3 id=\"end-com-surrogate-process-for-windows-10-11\">End COM Surrogate Process (Windows 10 &amp; 11)<\/h3>\n<p> This process handles thumbnail generation and can sometimes cause files to be registered as \u201cin use.\u201d Killing it temporarily might free your file. Here\u2019s what to do: <\/p>\n<ul>\n<li>Open Task Manager (<strong>CTRL + Shift + Esc<\/strong>).<\/li>\n<li>In the <strong>Details<\/strong> tab, look for <strong>dllhost.exe<\/strong>, which is the COM Surrogate.<\/li>\n<li>Right-click and choose <strong>End Process<\/strong>.<\/li>\n<\/ul>\n<p> Note: Restarting your PC afterward resets it, but if it keeps popping back up, you might need to disable thumbnail caching or related features.<\/p>\n<h3 id=\"remove-disable-thumbnails-using-disk-clean-up\">Remove Thumbnails Cache with Disk Cleanup<\/h3>\n<p> Cached thumbnails can be a sneaky cause. Clearing that cache often solves \u201cfile in use\u201d errors. Here\u2019s how: <\/p>\n<ul>\n<li>Click the Start button, type <strong>Disk Cleanup<\/strong>, and open the app.<\/li>\n<li>Select your Windows drive (usually C:), then click <strong>OK<\/strong>.<\/li>\n<li>Wait for it to scan, then in the list, find and check <strong>Thumbnails<\/strong> and any other junk you want gone.<\/li>\n<li>Click <strong>OK<\/strong> to delete, then wait for it to finish.<\/li>\n<\/ul>\n<p> After this, your thumbnail cache will reset, and Windows might think the file isn\u2019t \u201cin use\u201d anymore.<\/p>\n<h3 id=\"using-group-policy-editor\">Use Group Policy to Disable Thumbnails<\/h3>\n<p> If thumbnails are always a problem, you can tell Windows not to cache them at all. This involves the Group Policy Editor: &#8211; Note: This isn\u2019t available on Windows Home, but you can enable gpedit via certain scripts or commands (like this: `<a href=\"https:\/\/github.com\/memstechtips\/Winhance\" rel=\"noopener noreferrer\" target=\"_blank\">GitHub Repository: Winhance<\/a>`).To disable thumbnail caching: <\/p>\n<ul>\n<li>Press <strong>Windows + R<\/strong>, type <code>gpedit.msc<\/code>, and hit Enter.<\/li>\n<li>Navigate to <strong>User Configuration &gt; Administrative Templates &gt; Windows Components &gt; File Explorer<\/strong>.<\/li>\n<li>Find and double-click <strong>Turn off caching of thumbnails in hidden thumbs.db files<\/strong>.<\/li>\n<li>Set it to <strong>Enabled<\/strong>, then click <strong>Apply<\/strong> and close the window.<\/li>\n<\/ul>\n<p> This can prevent Windows from holding onto cached thumbnails that cause locking issues.<\/p>\n<h3 id=\"disable-the-preview-panel\">Disable the Preview Pane<\/h3>\n<p> Turning off the preview pane in File Explorer is straightforward and can fix the \u201cfile in use\u201d illusion: <\/p>\n<ul>\n<li>Open any folder, then go to the <strong>View<\/strong> tab.<\/li>\n<li>Click on <strong>Preview Pane<\/strong> to toggle it off.<\/li>\n<\/ul>\n<p> Or just press <kbd>Alt + P<\/kbd> while in an Explorer window. This stops Windows from trying to load previews that might keep files \u201cactive.\u201d <\/p>\n<h3 id=\"modify-the-file-using-command-prompt\">Modify the File Using Command Prompt<\/h3>\n<p> When all else fails, CMD can be a straightforward way to delete or rename the file without Windows getting in the way. To delete: <\/p>\n<ul>\n<li>Open Command Prompt as Administrator (search for <strong>CMD<\/strong>, right-click, <strong>Run as administrator<\/strong>).<\/li>\n<li>Change to the drive where your file lives, e.g., <code>E:<\/code>.<\/li>\n<li>Use the delete command: <code>Del <path>\\<filename><\/filename><\/path><\/code> \u2014 for example: <code>Del E:\\Example\\one.txt<\/code><\/li>\n<\/ul>\n<p> To rename: <\/p>\n<ul>\n<li>In the same elevated CMD window, navigate to the folder (<code>cd path\\to\\folder<\/code>).<\/li>\n<li>Type: <code>Rename old-filename.txt new-filename.txt<\/code><\/li>\n<\/ul>\n<p> Sometimes, doing it this way bypasses any \u201cfile in use\u201d checks.<\/p>\n<h3 id=\"remove-via-anti-virus\">Remove Files Quarantined by Antivirus<\/h3>\n<p> A file stuck in quarantine might block your attempts because Windows thinks it\u2019s open or dangerous: <\/p>\n<ul>\n<li>Go to <strong>Settings<\/strong> &gt; <strong>Update &amp; Security<\/strong> &gt; <strong>Windows Security<\/strong>.<\/li>\n<li>Click <strong>Virus &amp; Threat Protection<\/strong>.<\/li>\n<li>Look under <strong>Current Threats<\/strong> for quarantined files.<\/li>\n<li>Select the file and click <strong>Start Actions<\/strong>, then choose <strong>Remove<\/strong>.<\/li>\n<\/ul>\n<p> Once removed from quarantine, try deleting or modifying again.<\/p>\n<h3 id=\"perform-a-clean-boot\">Perform a Clean Boot<\/h3>\n<p> If you suspect some background app or service is locking your file, performing a clean boot can help isolate the cause. To do it: <\/p>\n<ul>\n<li>Open Task Manager (<strong>CTRL + Shift + Esc<\/strong>).<\/li>\n<li>Switch to the <strong>Startup<\/strong> tab.<\/li>\n<li>Disable all unnecessary startup items (right-click and choose <strong>Disable<\/strong>).<\/li>\n<li>Reboot your PC and try again.<\/li>\n<\/ul>\n<p> After this, try the file modification once more. If it works, the culprit is likely some third-party app. You can enable startup apps one by one to identify which one is causing the lock.&#8212; Hopefully, one of these steps gets that file freed up. Windows can be weird sometimes, but with a little patience, most lock issues are fixable. Just keep in mind, sometimes it\u2019s a process lingering in the background or a cached thumbnail making Windows think the file is still active.<\/p>\n<ul>\n<li>Verify if the file is truly open or just appears to be in use.<\/li>\n<li>Try rebooting your system if all else fails.<\/li>\n<li>Use specialized tools like <strong>Unlocker<\/strong> or <strong>Process Explorer<\/strong> for stubborn cases.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>How to Fix \u201cThis action cannot be completed because the file is open\u201d Error Dealing with that annoying \u201cThis action cannot be completed because the file is open\u201d message can be a huge pain, especially when you\u2019re trying to delete, move, or rename a file but Windows just won\u2019t let you. Usually, it\u2019s because some [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12989","post","type-post","status-publish","format-standard","hentry","category-how-to"],"acf":[],"_links":{"self":[{"href":"https:\/\/howtogeek.blog\/nl\/wp-json\/wp\/v2\/posts\/12989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howtogeek.blog\/nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howtogeek.blog\/nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/nl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/nl\/wp-json\/wp\/v2\/comments?post=12989"}],"version-history":[{"count":1,"href":"https:\/\/howtogeek.blog\/nl\/wp-json\/wp\/v2\/posts\/12989\/revisions"}],"predecessor-version":[{"id":12990,"href":"https:\/\/howtogeek.blog\/nl\/wp-json\/wp\/v2\/posts\/12989\/revisions\/12990"}],"wp:attachment":[{"href":"https:\/\/howtogeek.blog\/nl\/wp-json\/wp\/v2\/media?parent=12989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howtogeek.blog\/nl\/wp-json\/wp\/v2\/categories?post=12989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howtogeek.blog\/nl\/wp-json\/wp\/v2\/tags?post=12989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}