Have you ever tried to delete a file in Windows 10, only to have the system stubbornly tell you that it is being used by another program? Or simply display an “Access denied” message? This is one of the most common and annoying problems. It doesn't matter if it's a glitch or some process that's “holding” the file — the situation is unpleasant, but solvable.
Fortunately, there are several reliable ways to bypass this block. You don't have to be a computer genius to do it. We'll look at methods that will help you delete even the most “stubborn” files. We'll start with simple solutions, such as restarting your computer or using safe mode, and then move on to more advanced options if the first ones don't work.
Our goal is to give you clear and practical instructions so that you can quickly clear your space of unnecessary files that refuse to be deleted in the usual way. Let's figure out how to regain control of your system.
Sometimes a file in Windows 10 cannot be deleted in the usual way — the system says that it is in use or that there is no access. In such cases, simple but more powerful methods will help: you can close the program that is using the file through the Task Manager, try to delete it in safe mode, use the command line, or use third-party utilities for forced deletion. The main thing is to act carefully so as not to accidentally damage important system files.
Method 1: Close the associated process
Sometimes, when deleting a file, a warning appears stating that it cannot be deleted because it is being used by a specific program that is currently running on the system.
If the software associated with the file is displayed on the bottom panel, simply close it in the usual way. If its interface does not open, right-click on the task and select “Close window”.

If the program is not displayed anywhere, you can turn it off via “Task Manager”:
- Open “Task Manager”. The easiest way is to right-click on the bottom taskbar and launch the application via the context menu.

- On the tab “Processes” find the problematic program. If necessary, you can sort the names by name by clicking on the column header at the top. Select the application, then select the button “End task”. For a detailed search of the process, you can switch to the tab “Details” and search there.

Once the program is closed, you should be able to delete the file.
Method 2: “Command line”
You can forcefully delete a file in Windows 10 through the built-in console by using a special command and specifying the path to it. This method may work even if the file is open but cannot be closed due to system failures.
- Through “Explorer” go to the file location. If it is located on the desktop or in a folder, “Downloads”, you need to specify the path on the C drive through your personal folder (i.e., for example,
C:\Users\USERNAME\DownloadsCopy the address from the top line by right-clicking on it and selecting “Copy”. 
- Run “Command Prompt”). with extended rights by clicking on “Start” and entering the name of the application. From the results, select Open as administrator.

- In the console, enter
del /f /s /q /a, then add a space, open quotation marks, and paste the path to the file, add a backslash (\) and enter the exact name of the file to be deleted with its extension, then close the quotation marks. For example, if the file is on the desktop, in our example the command will look like this:del /f /s /q /a “C:\Users\Professional\Desktop\document.docx”, where “Professional” — the name of our account. Press the “Enter”, to confirm the deletion. 
As a result, a message will appear stating that the file has been deleted, and with this approach, it will be deleted without being temporarily placed in the “Recycle Bin”.
Method 3: Changing the file owner
Key. If, during removal, Windows reports that the user does not have the rights to perform the procedure, then the problem lies with the owner. This usually happens when multiple accounts are used on the computer or when a specific file is to be deleted. To delete a file that belongs to another account, you will need to obtain ownership of it. It should be noted that this is only available to the Windows 10 administrator.
- Right-click on the file name to bring up the context menu. Go to the “Properties”.
-
- In the new window, click on the tab “Security”, then on the button “Advanced”.

- On the line “Owner” click on the link “Change”.

- Enter your account name in the special field and click on the confirmation button.

Close all windows in the properties section and try to delete the file again.
Method 4: Booting in “Safe Mode”
When third-party programs prevent you from deleting a file or you cannot do so because of viruses that have infiltrated the system, booting Windows 10 in “Safe Mode”:
- Open the tool “System Configuration” using the dialog box “Run”. Simultaneously press the keys “Win + R”, then type the command
msconfigand click on “OK”. -
- Go to the tab “Download”. In the block “Boot Options” check the box “Safe Mode” and select the option “Minimal”, which will start the system with only the critically necessary number of drivers, services, and programs. Click on “Apply”.

After the procedure, restart your computer to start the system in “Safe Mode”. Find the problematic file and try to delete it again.
Method 5: Renaming the file
Many people find the old and proven method of renaming the file helpful. The problem may have arisen due to a system crash or because part of the problematic file was written to a bad sector on the hard drive, so this method may fix the situation.
Rename the file using the context menu function. You can also try changing its extension: after the dot separating the name from the format, enter a different extension, for example, change .docx .zip.

Method 6: Archiving functions
Some archivers allow you to fine-tune the file archiving procedure, including deleting the original after the procedure is complete. In other words, you will need to archive the problematic data, select the appropriate function in the program, and then get rid of the archive itself. Free software such as 7-Zip can help with this.
Download 7-Zip
- Install the archiver. Its functions are automatically integrated into the context menu. Right-click on the file, hover over “7-Zip” and select from the additional list “Add to archive…”.

- In the archive settings window, find the block “Options” and select “Delete files after compression”. Click on “OK”.

Wait until the archive is created. The original file should be deleted automatically, and you will need to manually delete the compressed folder itself.
As you can see, even the most stubborn file in Windows 10 can be deleted. The main thing is not to give up after the first unsuccessful attempt. Simply restarting your computer or using Unlocker is often enough to solve the problem.
If simple methods don't help, don't panic. The command line and safe mode are your reliable allies in the fight against system errors and crashes. They give you direct access to system management, bypassing many restrictions.
Ultimately, it is important to understand why the file cannot be deleted. It may be used by an important program, and deleting it may disrupt its operation. Always proceed with caution, especially when working with system files. Now you have a whole arsenal of tools to tackle this task.









