Fix file can not be deleted, moved, renamed in Windows
Sometimes it's frustrating not being able to delete files or do anything with them. Because Windows does not allow you to edit files when the program is open - The file when opened will be locked.
If you try to delete a file and see a message that the file is open in a program, you will have to unlock the file (or close the program ).
In some cases it is not simply that the file you want to delete is being opened. You have left but still can not do anything. At that time, the possibility of virus or program freezing and faulty is very high. Then you need solutions to unlock stubborn files or folders.
Note : Unlocking certain files and deleting them can cause problems with open programs.
Unlocker
Unlocker is a useful utility to unlock files . When the Unlocker installation is complete, you can right-click a stubborn file or folder and select Unlocker. (Note that Unlocker suggests that you install the Babylon toolbar during the installation process - you should take care to uncheck that option.)
You will see a list of locked processes related to the file or folder. You can Turn Off - Kill those programs quickly to be able to unlock files or folders you want to edit or delete. Note that this can cause problems if the file you want to delete is related to system programs or related programs.
Once the file is unlocked, you can delete, move, or rename it normally.
Process Explorer
You can also unlock a file using Process Explorer - the task manager. First, start Process Explorer with administrator privileges (Run as adminiristrator)
Next inside Process Explorer click File and choose Show Details for All Processes.
Next, click the Find Handle or DLL menu . . (Or press Ctrl + F.
Search by name of locked file or folder.
Select the locked file or folder in the details section at the bottom of the Process Explorer Search window.
Right-click on Process and select Close Handle . If there are multiple processes listed in the search window, you will have to repeat this process to close processing for each process.
You can now delete or modify the file normally.
Restart your computer
In general, a file will not be locked after you restart your computer - unless the program is locked it is a startup program that locks the file as soon as you log in.
If you have a stubborn file or folder and don't want to use any of the tips here, you can just reboot your computer. You will be able to delete, move, or rename files as soon as Windows is back up.
If the file is locked by a startup program , you can boot into safe mode to delete it instead. Press the F8 key during boot and select Safe Mode to boot into safe mode. Delete (or move) the files in safe mode and restart your computer.
There are many other ways to delete locked files. For example, you can use a program to schedule a file deletion when you follow your computer reboot - the files will be automatically deleted when you restart.
You should read it
- How to Delete Read-Only Files on Linux
- How to delete repeat file to save computer memory by CCleaner
- How to batch delete files on Windows 10
- 10 most effective ways to delete stubborn files in 2023
- What is a .tmp file? How to open .tmp file on Windows computer?
- Fix the error that OneDrive files or folders could not be deleted
- 2 ways to permanently delete files on Windows
- How to Delete DLL Files
May be interested
- Fixing the Facebook error was renamed Vu Dinh Dungin the early days of the new year, the online community got a buzz when a series of facebook accounts (including celebrities) were suddenly changed into ... vu dinh dung. accordingly, people who have been renamed have left a lot of personal information online, so they may have been exploited. if unfortunately your name is changed, follow the way below to change your old name.
- Instructions to edit or replace Boot.ini file on Windows XPboot.ini is a hidden file used to identify folders on the partition, and the directory location located on the windows xp hard drive. however, sometimes for some reason the boot.ini file may be damaged, corrupted, or deleted.
- Automatically delete items in the Deleted items folder when exiting Outlookwhen you delete any email, task, calendar or note in outlook, these emails will be moved to the deleted items folder. by default, items in the deleted items folder will not be deleted automatically, but are still stored there. so you have to take a few more steps to delete these folders completely.
- Fix 'Can't open this item' error in Windowsif you are using windows, you receive the can't open this item error message. it may be moved, renamed, or xóa, so what to do? please follow the article below for details.
- Searching for browsing history has been deletedjust like other data on a computer, your browser history will be saved as a file. clearing your browser history simply deletes these files from your hard drive. if using file recovery measures (eg recuva software), it is possible to recover your browser history after being deleted.
- The deleted file is not in the trash, why and how to handle it?deleted files are not in the trash, so you can't restore files you accidentally deleted as needed? tipsmake will help you find errors.
- How to recover, retrieve deleted files in trashhow to recover, retrieve deleted files in trash. in the course of using the computer, you have probably encountered a case of mistakenly deleting data. if you are in that case, don't worry, because when we delete a file in windows, the file
- How to Make Windows 8 Move Deleted Favorites to the Recycle Bin Instead of Deleting Themwindows 8 has a frustrating feature that causes all favorites that are deleted in internet explorer to skip the recycle bin. this guide will help you install group policy edit (gpedit.msc), which is a feature present in older versions of...
- How to fix 'File Is Open in Another Program' in Windows 10when using windows 10, you may have tried to delete a file or moved it to another location and encountered an error saying 'action cannot be completed because the file is open in another program'.
- 6 ways to permanently delete files on Windows - You will not be able to get that file back againnormally, when deleting a file on windows, the file will not be deleted immediately but will be saved in the recycle bin. after that, you will have to do one more step: empty the trash. but if you don't want to have to do this second step, we will show you how to permanently delete a file in the article below.