Flutter Error 01: How to resolve 'Cannot delete file, path = ... (OS Error: The process cannot access the file because it is being used by another process, errno = 32)' in Flutter ?
Note - Cannot delete file, path = 'C:\Flutter\flutter\bin\cache\downloads\storage.googleapis.com\flutter_infra_release\flutter\a5c24f58 d05aaf66f7972fb23959d8cafb9f5a\flutter-web-sdk.zip' (OS Error: The process cannot access the file because it is being used by another process. , errno = 32)
To resolve this issue, you can try the following steps:
1. Close Applications: Ensure that there are no applications running that might be using files in the Flutter directory. Close any editors, terminals, or other programs that might be accessing Flutter files.
2. Check Task Manager: Open Task Manager (`Ctrl + Shift + Esc`) and check if there are any processes that might be using files in the Flutter directory. If you find any, you can end those processes to release the file locks.
3. Reboot Your Computer: Sometimes, simply restarting your computer can release file locks and allow you to delete the file.
- Open Command Prompt as an administrator.
- Navigate to the directory containing the file you want to delete using the `cd` command. For example:
C:\Flutter\flutter\bin\cache\downloads\storage.googleapis.com\flutter_infra_release\flutter\a5c24f538d05aaf66f7972fb23959d8cafb9f95a
- Once you're in the directory containing the file, use the `del` command to delete it. For example:
del flutter-web-sdk.zip
5. Safe Mode: If all else fails, you can try booting your computer into Safe Mode and then attempting to delete the file. Safe Mode loads only essential drivers and services, which might help in releasing the file locks.
After successfully deleting the file, you can proceed with uninstalling Flutter as described in the previous response.
If you like comment and share. 🚀
0 Comments