Search This Blog

Monday, October 7, 2024

Can't delete computer files? Four easy ways to solve it!

Method 1: Manually set permissions


1. Right-click the file that cannot be deleted, select "Properties", click "Security", find "Advanced" and open it.

2. Click "Edit" on the "Owner" page to enter the security settings page.

3. Change the owner to "Administrators" and finally click "OK" three times.

4. Then go back to the folder properties page, click "Edit" to enter the permissions page, and then click "Add".

5. Select "Advanced" in the pop-up window, click "Find Now" in the new window, select "Administrators" in the search results, and then click OK.

6. Finally, go back to the folder's permission page, check all permissions and click OK to delete the file.


Method 2: End the process


1. First, right-click on the taskbar and select "Task Manager".

2. Then click CPU above, and then click "Open Resource Monitor" below.

3. Then click on the "Search Handle" below.

4. Finally, search for the file that cannot be deleted, right-click and select "End Process".


Method 3: Use batch file


1. Create a text document first and change the suffix to bat.

2. Right-click to edit, enter DEL /F /A /Q \\?\%1, RD /S /Q \\?\%1 in the text, and save.

3. Now you just need to open the files that cannot be deleted with this and delete them.


Method 4: Using the command line


1. Enter cmd in the address bar where you want to delete the file.

2. Enter takeown /f + file path in cmd and press Enter to run; then enter icacls + file path /grant username: F (Note: if there are spaces in the path, quotes must be used).

3. The meaning of these two commands is: obtain file ownership and file management permissions, and then you can delete the file normally.


The above four methods can solve most file deletion failure problems. If you still cannot delete the file after trying the above methods, there may be a problem with the file itself. It is recommended to use a professional file recovery tool to handle it.

No comments:

Post a Comment