Delete old windows / program files from second drive?
Delete old windows / program files from second drive?
The absurd “answers” on the microsoft community of course offer things like “Use Disk Cleanup” (which is a blatantly uneducated answer) or “just reformat the drive” (formatting avoids the problem rather than addressing it).
What are the correct steps to delete these old files?
TL;DR: Use a bat file (as Administrator) like:
set FOO=e:\windows
takeown /F "%FOO%" /A /R /D Y
icacls "%FOO%" /T /grant administrators:F
rd /s /q "%FOO%"
Or, for Windows folder, just rename it to Windows.old
and use the Disk Cleanup
utility (as Administrator)