Unable to remove the windows or windows.old folder, Here’s how…
Using Command Prompt:
1. Open Command Prompt as Administrator:
- Press Windows key
- type cmd
- right-click on Command Prompt, and select Run as administrator
2. Take Ownership of the Windows.old Folder:
Type the following command and press Enter:
takeown /F C:\Windows.old /A /R /D Y
(C:\window.old -> Replace that with your drive letter)
3. Grant Full Permissions to the Folder:
Type this command and press Enter:
icacls C:\Windows.old /grant administrators:F /T
(C:\window.old -> Replace that with your drive letter)
4. Delete the Folder:
Finally, type the command below and press Enter:
rmdir /S /Q C:\Windows.old
(C:\window.old -> Replace that with your drive letter)
This will forcefully delete the `Windows.old` folder and all its contents. Make sure no important files are in this folder before deletion.
