How to Delete Files or Folders that Report Access Is Denied Errors

When trying to delete a file, you may see 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.'(Cannot delete : Access denied.

Close the open file

Picture 1 of How to Delete Files or Folders that Report Access Is Denied Errors

Close any open programs. The most common cause of this error is that the program is accessing the file you are trying to delete. For example, you try to delete a document that is open in Word, or try to delete a song that is currently playing.

Picture 2 of How to Delete Files or Folders that Report Access Is Denied Errors

Open "Task Manager." Press Ctrl+ Alt+ Deland select "Task Manager" from the menu. Click the "User Name" tab and look for the entries under your username. Most of these programs can be turned off without causing system errors.

Picture 3 of How to Delete Files or Folders that Report Access Is Denied Errors

Close programs that you know. You can do this by selecting them and clicking "End Process".

If you accidentally close a program that causes the system to become unstable, you can restart your computer to recover.

Picture 4 of How to Delete Files or Folders that Report Access Is Denied Errors

Restart the computer. Usually, restarting the computer can cause the program to no longer have anything to do with the file. Try deleting the file after completing the reboot and before opening any other programs. If the file still displays the error message, try the method below.

Run third-party programs

Picture 5 of How to Delete Files or Folders that Report Access Is Denied Errors

Search for progress unlocking program. Some popular programs include Process Explorer, LockHunter, Unlocker or Lock-UnMatic and Mac OS File Unlocker for Mac. All of these programs are free and integrated with the Windows interface. If you choose Unlocker, be careful when surfing their website because there are many bad ads that can cause your computer to be infected with malware.

Picture 6 of How to Delete Files or Folders that Report Access Is Denied Errors

Program setting. The entire program has a relatively simple installation. Just unzip the file if needed and open the Setup or Install file. Setting the default settings will usually work for most users.

Some programs may tempt you to install a web browser toolbar during the installation process. Make sure you don't select these if you don't have a need to use the new toolbars.

Picture 7 of How to Delete Files or Folders that Report Access Is Denied Errors

Right click on the file you want to delete. Select the newly installed tool from the menu. This is the operation to open a new window. A list will be displayed showing all the programs accessing the file.

Picture 8 of How to Delete Files or Folders that Report Access Is Denied Errors

Close the program. Select the program you want to close and click the "Kill Process" button. After all interfering programs are closed, you can delete files without any problems.

Use Command Prompt

Picture 9 of How to Delete Files or Folders that Report Access Is Denied Errors

Find the file storage location on your hard drive. If you don't know the file's storage location, you can try using the search option (Search). Click "Start menu" and type the name of the file into the search field. In Windows 8, you should type the name of the file on the Start screen.

Picture 10 of How to Delete Files or Folders that Report Access Is Denied Errors

Right click on the file and select "Properties." Remove (uncheck) all properties of a file or folder.

Picture 11 of How to Delete Files or Folders that Report Access Is Denied Errors

Record the location of the file. You will later need to find this location when you force delete a file in Command Prompt.

Picture 12 of How to Delete Files or Folders that Report Access Is Denied Errors

Open the Command Prompt window. You can do this by clicking Start and typing 'cmd' into the search field but without the quotes.

Picture 13 of How to Delete Files or Folders that Report Access Is Denied Errors

Close all open programs. Keep the Command Prompt window open, but close all other open programs.

Picture 14 of How to Delete Files or Folders that Report Access Is Denied Errors

Open the Task Manager window. You can do this by pressing Ctrl+ Alt+ Deland selecting "Task Manager" in the menu or by going to the Start menu, pressing "Run", then going to "TASKMGR.EXE".

Picture 15 of How to Delete Files or Folders that Report Access Is Denied Errors

Click the "Processes" tab of the Task Manager window. Look for the process named 'explorer.exe'. Select that process and click "End Process". Minimize but do not close Task Manager.

Picture 16 of How to Delete Files or Folders that Report Access Is Denied Errors

Return to the Command Prompt window. Here, you can force delete files or folders using a basic command line tool. Although both files and folders are deleted in almost the same way, there are slight differences in the command line you will use.

Picture 17 of How to Delete Files or Folders that Report Access Is Denied Errors

Search path: C:Documents and SettingsYour User Name>. This path will appear in Command Prompt.

Picture 18 of How to Delete Files or Folders that Report Access Is Denied Errors

Execute command. In the Command Prompt window, type cd My Documents after your username.

Picture 19 of How to Delete Files or Folders that Report Access Is Denied Errors

Delete files. After "My documents", type the delete command, followed by the name of the file you want to delete. For example: You can type "del unwanted file.exe".

Picture 20 of How to Delete Files or Folders that Report Access Is Denied Errors

Use the DEL command to delete stubborn files in the Command Prompt window. The complete command will look like this: C:Documents and SettingsYour User NameMy Documents>del unwantedfile.exe

Picture 21 of How to Delete Files or Folders that Report Access Is Denied Errors

Delete folder. If you want to delete a directory rather than a file, you can use the "RMDIR /S /Q" command instead of the "del" command. The command line will look like this: C:Documents and SettingsYour User Name>rmdir /s /q "C:Documents and SettingsYour User NameMy Documentsunwanted folder"

Picture 22 of How to Delete Files or Folders that Report Access Is Denied Errors

Press ALT+TAB. You will be returned to Task Manager where you can click File , select New Task and type "EXPLORER.EXE" to restart the Windows interface.

Picture 23 of How to Delete Files or Folders that Report Access Is Denied Errors

Close Task Manager. Now the file has been deleted, but you can check again by going to Start and typing in the search bar.

Update 12 May 2024
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile