How to Delete a File or Folder Showing Error 'Access Is Denied'

It may happen that when you are trying to delete a file, you receive the following error message: Cannot delete : Access is denied. Make sure the disk is not full or write-protected and that the file is not currently in use. There are a...
Method 1 of 3:

Closing Open Files

  1. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 1How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 1
    Close any open programs. The most common cause of this error message is a program currently accessing the file you are trying to delete. For example, if you are trying to delete a document that is currently open in Word, or trying to delete a song that is currently playing.[1]
  2. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 2How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 2
    Open the "Task Manager." Press Ctrl+Alt+Del and select "Task Manager" from the menu. Click on the "User Name" tab and find the entries under your username. Most of these programs can be ended without causing the system to crash.
  3. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 3How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 3
    Close the programs you recognize. You can do this by selecting them and clicking "End Process."
    1. If you close a program that causes the system to become unstable, restart your computer to restore.
  4. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 4How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 4
    Restart your computer. Oftentimes, restarting your computer will release the hold that a program had on a specific file. Try deleting the file after you have completed the restart and before you open any other programs. If the file still shows the error message, continue on to the next method.
Method 2 of 3:

Running a Third-Party Program

  1. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 5How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 5
    Find a process unlocking program. Popular options include Process Explorer, LockHunter, and Unlocker or Lock-UnMatic and Mac OS File Unlocker for Mac. All of these programs are free and integrate into your Windows interface. If you choose to use Unlocker, be wary when navigating their website because there are numerous tricky ads that may lead to malware on your computer.[2]
  2. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 6How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 6
    Install the program. All of the programs have relatively simple installs. Unzip the file if necessary and open the Setup or Install file. The typical installation settings will work for most users.
    1. Some programs may try to install web browser toolbars during the installation. Make sure to deselect these if you don't want new toolbars.
  3. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 7How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 7
    Right-click on the file you want to delete. Select the newly-installed tool from the menu. This will open a new window. A list will be displayed showing all of the programs that are currently accessing the file.
  4. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 8How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 8
    End the programs. Select the program that you want to end and click the "Kill Process" button. Once all of the locking programs are closed, you will be able to delete the file without issue.
Method 3 of 3:

Using the Command Prompt

  1. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 9How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 9
    Locate the file stored on your hard drive. If you are unable to locate the file, try using the Search option. Click the "Start menu" and enter the file name into the Search field. In Windows 8, start typing the file name when you are at your Start screen.
  2. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 10How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 10
    Right-click on the file and choose "Properties." Remove (uncheck) all the attributes of the file or folder.
  3. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 11How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 11
    Make a note of the file location. You will need to relocate this later when forcibly deleting it in the Command Prompt.
  4. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 12How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 12
    Open a Command Prompt window. You can do this by clicking on Start and typing 'cmd' into the Search field without the quotation marks.
  5. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 13How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 13
    Close all open programs. Leave the Command Prompt window open, but proceed to close all other open programs.
  6. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 14How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 14
    Open the window Task Manager. You can do this by either pressing Ctrl+Alt+Del and selecting "Task Manager" from the menu or by going to the Start menu, pressing "Run," and then entering "TASKMGR.EXE."
  7. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 15How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 15
    Click on the "Processes" tab of the windows Task Manager. Find the process named 'explorer.exe'. Select it and click on "End Process." Minimize, but do not close, Task Manager.
  8. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 16How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 16
    Return to the Command Prompt window. Here you may forcibly delete a file or a folder through employing a basic command line tool. While both files and folders can be deleted in basically the same way, there are subtle differences in the command you will use.
  9. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 17How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 17
    Find the path: C:Documents and SettingsYour User Name>. This will be in your command prompt.
  10. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 18How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 18
    Execute your command. In the Command Prompt window, enter cd My Documents after Your User Name.
  11. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 19How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 19
    Delete your file. After "My documents," enter the Delete command followed by the name of the file you wish to delete. For example, "del unwanted file.exe."
  12. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 20How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 20
    Use the DEL command to delete the offending file in Command Prompt window. The final command should look as follows: C:Documents and SettingsYour User NameMy Documents>del unwantedfile.exe[3]
  13. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 21How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 21
    Delete a folder. If you are seeking to delete a folder rather than a file, use the "RMDIR /S /Q" command instead of the "del" command. This will look something like this: C:Documents and SettingsYour User Name>rmdir /s /q "C:Documents and SettingsYour User NameMy Documentsunwanted folder"[4]
  14. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 22How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 22
    Press ALT+TAB. This will bring you back to Task Manager where you can click File, select New Task and then enter "EXPLORER.EXE" to restart the Windows interface.
  15. How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 23How to Delete a File or Folder Showing Error 'Access Is Denied' Picture 23
    Close the Task Manager. The file should now be deleted but you can check by searching for it by going to Start and then entering it into the search bar.
5 ★ | 1 Vote