In Windows operating systems, the administrator is considered to be the user with the most privileges. Despite having more privileges, many administrators are not able to delete their files. If you commonly use a computer as the administrator, you have likely experienced the following issues when trying to delete files:
- Cannot delete file: Access is denied.
- The file is in use by another program or user.
- The source or destination of the file may be in use.
It is irritating to not have complete access to your files when you are the administrator. Fortunately, you can get rid of these files permanently through the command prompt or by using a program like FileASSASIN.
Using the Command Prompt To Delete Files:
Click the “Start” button and type “CMD” or “Command Prompt” inside the search box.
Right-click the “Command Prompt” icon from the search results and select “Run as administrator.”
This will launch an elevated or administrator level Command Prompt. Doing this allows you to execute commands without restriction.
An ideal command for removing a file should look like this:
DEL /F /Q /A C:\Users\Enter your username here\Enter the location of the file here\Enter the file name here
- DEL: Stands for delete
- /F: Stands for force delete
- /Q: Stands for quite mode. This means that it will prompt any notifications such as “Are you sure you want to delete this file?”
- /A: Stands for various file attributes such as read-only, hidden, ready for archiving, etc.
- /C: Stands for your main drive. In most cases, it is the “C:” drive.
For example if you want to delete a file named “virus.exe” on the desktop, you should enter the following command:
DEL /F /Q /A C:\Users\Vikitech\Desktop\Virus.exe
Now hit the “Enter” key to execute the command. This will permanently delete the file.