Some users see an error with the code 0x80070050 saying File exists under Windows on their Windows 11/10 PC. In this guide, we have some working solutions that may fix the problem for good.
Cannot delete the file because it does not exist?
Sometimes it happens that you see a file in explorer but cannot delete it and the file does not exist error. You can use the following methods like restarting Explorer, deleting via command prompt, resetting recycle bin, etc.
What is error code 0x80070050, the file exists
We usually see this error when we try to delete an already deleted file on our Windows PC. The file has already been deleted but we see it in our folders due to cache or some file corruption. Not only does this happen due to cache or corrupted files, but it can also happen due to malware, hard drive failure, etc. Let’s see how we can fix error code 0x80070050, the file exists on Windows 11/10.
Fix error 0x80070050, file exists when deleting a file
File exists the error can be corrected in the following ways-
- Restart Explorer, then try again
- Restart the PC then try again
- Boot into Safe Mode or Clean Boot Mode, then try again
- Use the command prompt to delete the file.
- Run ChkDsk, then try again.
- Reset the recycle bin.
Let’s see each way in detail and use them to fix the error.
1]Restart the explorer, then try again
The file exists error may have occurred due to the files not being updated by File Explorer. You can restart File Explorer and resolve it. After restarting Explorer, try to delete the files again.
2]Restart the PC then try again
There may be some unexpected issues that have occurred on your PC that could be resolved by restarting your PC. Restart your PC and try to delete the files again. If the problem is still not resolved, try the following methods.
3]Boot in Safe Mode or Clean Boot Mode, then try again
Booting into Safe Mode starts your PC with a minimal set of drivers and programs that are essential for the PC to function. After booting into safe mode, try to delete the files that caused you to see the error. If the error is not corrected, go to Clean Boot which is used to troubleshoot the issues.
When you run your PC in Clean Boot mode, only essential Windows components and drivers are running. All third-party software will be disabled. Check if the error persists in Clean Boot mode. Otherwise, it could be due to a third-party app that you installed or updated recently. You need to uninstall it and see if that fixed the error.
4]Use the command prompt to delete the file
There are various commands written by Microsoft to perform various operations on Windows using the command prompt. You can use the same command prompt to delete files. It gives you the option to delete files, entire folders and also force their deletion.
5]Run CHKDSK then try again
The error may have occurred due to a hard drive failure or poor condition. You need to make sure the hard drive is working properly by running CHKDSK and correcting any errors (if any) on your hard drive. Then try to delete the files.
6]Reset the recycle bin
You may not be able to delete the files and see the error due to recycle bin corruption or some other issue. You can reset the recycle bin to resolve issues with it. This will resolve the file existence error and allow you to delete files.
Read: Cannot delete items from the Recycle Bin.
How do I delete a file while it is running?
We are facing situations where we cannot close or see a file to close it from execution. You can restart your PC and then try again or you can delete these files using a command to force them to delete using the command prompt.