{"id":2009,"date":"2017-01-11T08:53:49","date_gmt":"2017-01-11T08:53:49","guid":{"rendered":"http:\/\/www.eassos.com\/blog\/?p=2009"},"modified":"2021-05-13T03:01:28","modified_gmt":"2021-05-13T03:01:28","slug":"solved-cannot-delete-file-or-folder-in-windows","status":"publish","type":"post","link":"https:\/\/www.eassos.com\/blog\/solved-cannot-delete-file-or-folder-in-windows\/","title":{"rendered":"Fix &#8211; Cannot Delete File or Folder In Windows"},"content":{"rendered":"<p>This instruction talks about causes and solutions to issue that you can\u2019t delete a file or folder in Windows. Usually it\u2019s easy to delete files, but some files just can\u2019t be deleted due to various reasons: file is in use, corrupted and other causes. This guide helps you deal with stubborn files and delete them.<\/p>\n<h1><span style=\"color: #0000ff;\">Cannot delete file or folder issue<\/span><\/h1>\n<p><em>\u201cA couple days ago I downloaded a .mkv file which can\u2019t be deleted from hard drive. Every time I attempted to delete it I get error saying \u201c<a href=\"https:\/\/www.eassos.com\/blog\/fixed-the-action-cannot-be-completed-because-the-file-is-open-in-other-program\/\">The action can\u2019t be completed because the file is open<\/a> in Windows Explorer. Close the file and try again\u201d. When I delete it with Command Prompt and still get error messages \u201cThe process can\u2019t access the file because it is being used by another process\u201d \u201cAccess is denied\u201d. I can\u2019t delete or remove file for no reason. I\u2019m at a loss for what to do. Please help!\u201d<\/em><\/p>\n<h1><span style=\"color: #0000ff;\">Reasons why you cannot delete file or folder<\/span><\/h1>\n<ul>\n<li>The file or folder you want to delete is in use. You can\u2019t delete a file in use if it is being used by other program. Also you can\u2019t edit, move, rename or cut this file until the program using it gives it up. Windows has a policy preventing the deletion of files which are in use by operating system or programs.<\/li>\n<li>File is marked as read-only. If a file or disk is write-protected, deletion won\u2019t be available, as deletion involves writing data. You can view its properties in File Explorer to check whether <a href=\"https:\/\/www.eassos.com\/how-to\/the-disk-is-write-protected.php\">the disk is write-protected<\/a>.<\/li>\n<li>File name might be too long. Window can\u2019t handle a file whose name is too long, for example, file name has more than 260 characters and the deletion will be difficult.<\/li>\n<li>The file uses an ACL. You may not be able to delete a file or folder when it uses ACL (Access Control List). Thus you need to take ownership of this file and then change permission on it to get rid of this error.<\/li>\n<li>File system corruption. It happens if file system is corrupted, you can\u2019t delete corrupted files or folders. Faulty software, program bugs and improper actions can corrupt file system and place file in a problematic environment. In some situations, the entire partition may turn to inaccessible once file system gets corrupted.<\/li>\n<li>Bad sectors. Bad sectors on hard drive or other storage device can cause write or read disk error. Bad sector is neither accessible nor writeable due to permanent damage. If the file can\u2019t be deleted stored on bad sectors, the deletion will encounter errors.<\/li>\n<\/ul>\n<h1><span style=\"color: #0000ff;\"><strong>What to do when you cannot \u00a0delete file or folder?<\/strong><\/span><\/h1>\n<h2><span style=\"color: #666699;\">Method 1: Close program via Task Manager<\/span><\/h2>\n<p>If folder in use cannot delete, you can manually end running process or application that holds the file you cannot delete in Task Manager. If that works, you can delete a file that is in use without rebooting system.<\/p>\n<ol>\n<li>\u00a0Open Task manager. Press key combinations: Ctrl + Shift + ESC from keyboard to open Task Manager. Alternatively, you can get it by right clicking Taskbar and selecting Start Task Manager.<\/li>\n<li>\u00a0On the Windows Task Manager click Process tab and look for the application that is using the file you want to delete.<\/li>\n<li>\u00a0Right-click the application and select End Process Tress and all instances of the process will be closed.<\/li>\n<\/ol>\n<h2><span style=\"color: #666699;\">Method 2: Disable Thumbs.db access<\/span><\/h2>\n<p>Windows requires all folders with visual media have a database of thumbnails to provide thumbnail images for files. If you open the folder to view content in it, Windows will loads the thumbs.db file into Windows Explorer. When you want to delete the folder and you\u2019ll get error message telling the action can\u2019t be completed. That\u2019s because the thumbs.db file is in use by Explorer, so you cannot delete file.<\/p>\n<ol>\n<li>Open Windows Explorer by double clicking This PC\/ Computer icon from desktop.<\/li>\n<li>Open the folder you want to delete and click File &gt; View &gt; Details (If you are using Windows 7, then go to Organize &gt; Folder and search options.)<\/li>\n<li>Click View tab from the Folder Options window and scroll down to locate \u201cLaunch folder windows in a separate process\u201d option in the Advanced settings section. Disable this option and click Apply followed by OK.<\/li>\n<\/ol>\n<h2><span style=\"color: #666699;\">Method 3: Delete file or folder in use with third-party software<\/span><\/h2>\n<p>You can use free partition manager \u2013 <a href=\"https:\/\/www.eassos.com\/partitionguru-free.php\">PartitionGuru Free<\/a> to delete file in use or corrupted files that Windows can\u2019t delete.<\/p>\n<ol>\n<li>\u00a0Download PartitionGuru from Eassos site and install it to a Windows-based computer. Do not install it to the partition where you cannot delete files, so that its features won\u2019t be affected.<\/li>\n<li>Start PartitionGuru and locate files that you can\u2019t delete. Select and right click these files to select <a href=\"https:\/\/www.diskgenius.com\/manual\/delete-files-permanently.php\">Delete Files Directly<\/a>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2010 size-full\" src=\"https:\/\/www.eassos.com\/blog\/wp-content\/uploads\/2017\/01\/delete-file-in-use.png\" alt=\"Cannot Delete File or Folder In Windows\" width=\"996\" height=\"751\" srcset=\"https:\/\/www.eassos.com\/blog\/wp-content\/uploads\/2017\/01\/delete-file-in-use.png 996w, https:\/\/www.eassos.com\/blog\/wp-content\/uploads\/2017\/01\/delete-file-in-use-300x226.png 300w, https:\/\/www.eassos.com\/blog\/wp-content\/uploads\/2017\/01\/delete-file-in-use-768x579.png 768w, https:\/\/www.eassos.com\/blog\/wp-content\/uploads\/2017\/01\/delete-file-in-use-398x300.png 398w\" sizes=\"auto, (max-width: 996px) 100vw, 996px\" \/><\/li>\n<li>Click Delete button from the message box. PartitionGuru will delete files you select from hard drive directly without considering file access mechanism of Windows system.<\/li>\n<\/ol>\n<h1><span style=\"color: #0000ff;\"><strong>How to recover deleted files with free recovery software?<\/strong><\/span><\/h1>\n<p>It\u2019s common to delete file by accident, thus it is necessary to know the way to undelete files and recover deleted files. Eassos free recovery software can help retrieve deleted and lost data from emptied Recycle Bin or USB disks. The recovery process is easy and simple. Let\u2019s have a look at the recovery guide:<\/p>\n<p><span style=\"color: #000000;\">Step 1<\/span>: Install and run Eassos Recovery Free and choose Recover Deleted File from the main interface.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1908 size-full\" src=\"https:\/\/www.eassos.com\/blog\/wp-content\/uploads\/2016\/10\/eassos-free-data-recovery-software-001.png\" alt=\"Cannot Delete File or Folder In Windows\" width=\"900\" height=\"700\" srcset=\"https:\/\/www.eassos.com\/blog\/wp-content\/uploads\/2016\/10\/eassos-free-data-recovery-software-001.png 900w, https:\/\/www.eassos.com\/blog\/wp-content\/uploads\/2016\/10\/eassos-free-data-recovery-software-001-300x233.png 300w, https:\/\/www.eassos.com\/blog\/wp-content\/uploads\/2016\/10\/eassos-free-data-recovery-software-001-768x597.png 768w, https:\/\/www.eassos.com\/blog\/wp-content\/uploads\/2016\/10\/eassos-free-data-recovery-software-001-386x300.png 386w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>Step 2:\u00a0Select partition where deleted files were stored and click Next button to search for lost data.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1909 size-full\" src=\"https:\/\/www.eassos.com\/blog\/wp-content\/uploads\/2016\/10\/eassos-free-data-recovery-software-002.png\" alt=\"eassos-free-data-recovery-software-002\" width=\"900\" height=\"700\" srcset=\"https:\/\/www.eassos.com\/blog\/wp-content\/uploads\/2016\/10\/eassos-free-data-recovery-software-002.png 900w, https:\/\/www.eassos.com\/blog\/wp-content\/uploads\/2016\/10\/eassos-free-data-recovery-software-002-300x233.png 300w, https:\/\/www.eassos.com\/blog\/wp-content\/uploads\/2016\/10\/eassos-free-data-recovery-software-002-768x597.png 768w, https:\/\/www.eassos.com\/blog\/wp-content\/uploads\/2016\/10\/eassos-free-data-recovery-software-002-386x300.png 386w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>Step 3: View and preview files. Recoverable files are put in two parts: Directory and File Type. You can preview files in both parts by double clicking which can open file and view file content.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1910 size-full\" src=\"https:\/\/www.eassos.com\/blog\/wp-content\/uploads\/2016\/10\/eassos-free-data-recovery-software-003.png\" alt=\"Cannot Delete File or Folder In Windows\" width=\"900\" height=\"700\" srcset=\"https:\/\/www.eassos.com\/blog\/wp-content\/uploads\/2016\/10\/eassos-free-data-recovery-software-003.png 900w, https:\/\/www.eassos.com\/blog\/wp-content\/uploads\/2016\/10\/eassos-free-data-recovery-software-003-300x233.png 300w, https:\/\/www.eassos.com\/blog\/wp-content\/uploads\/2016\/10\/eassos-free-data-recovery-software-003-768x597.png 768w, https:\/\/www.eassos.com\/blog\/wp-content\/uploads\/2016\/10\/eassos-free-data-recovery-software-003-386x300.png 386w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>Step 4: Recover files you need. Select files by ticking the check box next to files or folders and click Recover button. Then you\u2019ll be asked to select a location to save recovered data. Do not save data to the partition that is suffering data loss.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This instruction talks about causes and solutions to issue that you can\u2019t delete a file or folder in Windows. Usually it\u2019s easy to delete files, but some files just can\u2019t be deleted due to various reasons: file is in use, &hellip; <a href=\"https:\/\/www.eassos.com\/blog\/solved-cannot-delete-file-or-folder-in-windows\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"gallery","meta":{"footnotes":""},"categories":[34],"tags":[548,551,550,549],"class_list":["post-2009","post","type-post","status-publish","format-gallery","hentry","category-pg","tag-cant-delete-file","tag-cannot-delete-file-in-use","tag-delete-corrupted-files","tag-delete-file-in-use","post_format-post-format-gallery"],"_links":{"self":[{"href":"https:\/\/www.eassos.com\/blog\/wp-json\/wp\/v2\/posts\/2009","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.eassos.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.eassos.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.eassos.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.eassos.com\/blog\/wp-json\/wp\/v2\/comments?post=2009"}],"version-history":[{"count":7,"href":"https:\/\/www.eassos.com\/blog\/wp-json\/wp\/v2\/posts\/2009\/revisions"}],"predecessor-version":[{"id":4665,"href":"https:\/\/www.eassos.com\/blog\/wp-json\/wp\/v2\/posts\/2009\/revisions\/4665"}],"wp:attachment":[{"href":"https:\/\/www.eassos.com\/blog\/wp-json\/wp\/v2\/media?parent=2009"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.eassos.com\/blog\/wp-json\/wp\/v2\/categories?post=2009"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.eassos.com\/blog\/wp-json\/wp\/v2\/tags?post=2009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}