How To Delete System Blocked Files

by [Published on 24 Sept. 2008 / Last Updated on 10 July 2008]

How to delete Files/Folders which are being blocked by the processes running in the background.

You will get the following error messages when you try to delete a file/folder which is being blocked by the System or Application Processes running in the Task manager:

  • Access Is Denied
  • Sharing Violation Error
  • File/Folder is being used by applications. Please close the application and then try again.

Solution:

You need to kill the handle. To kill the handle, use Process Explorer from Sysinternals (at URL: http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx

How to delete the handle:

  • Run Process Explorer
  • Go to Find menu > Enter File/Folder name and then click on Search. You will see a list of processes blocking the file/folder.
  • Right click on the process and then click on Close Handle > Click Ok for confirmation.

Now you can successfully delete the file.

See Also


The Author — Nirmal Sharma

Nirmal Sharma avatar

Nirmal Sharma is a MCSEx3, MCITP and was awarded the Microsoft MVP award in Directory Services and Windows Networking. He specializes in Microsoft Azure, Office 365, Directory Services, Failover Clusters, Hyper-V, PowerShell Scripting and System Center products. Nirmal has been involved with Microsoft Technologies since 1994. In his spare time, he likes to help others and share some of his knowledge by writing tips and articles on various sites and contributing to PowerShell-based Dynamic Packs for www.ITDynamicPacks.Net solutions.

Featured Links