{"id":1560,"date":"2020-06-23T19:58:57","date_gmt":"2020-06-23T18:58:57","guid":{"rendered":"http:\/\/blog.briang.org\/?p=1560"},"modified":"2020-06-27T23:36:04","modified_gmt":"2020-06-27T22:36:04","slug":"delete-old-windows-program-files-from-second-drive","status":"publish","type":"post","link":"https:\/\/blog.briang.org\/?p=1560","title":{"rendered":"Delete old windows \/ program files from second drive?"},"content":{"rendered":"<p><a href=\"https:\/\/superuser.com\/questions\/915173\/delete-old-windows-program-files-from-second-drive\"><strong>Delete old windows \/ program files from second drive?<\/strong><\/a><\/p>\n<blockquote><p>The absurd &#8220;answers&#8221; on the microsoft community of course offer things like &#8220;Use Disk Cleanup&#8221; (which is a blatantly uneducated answer) or &#8220;just reformat the drive&#8221; (formatting avoids the problem rather than addressing it).<\/p>\n<p>What are the correct steps to delete these old files? <\/p><\/blockquote>\n<p>TL;DR: Use a bat file (as Administrator) like:<\/p>\n<p><code>set FOO=e:\\windows<br \/>\ntakeown \/F \"%FOO%\" \/A \/R \/D Y<br \/>\nicacls \"%FOO%\" \/T \/grant administrators:F<br \/>\nrd \/s \/q \"%FOO%\"<\/code><\/p>\n<p>Or, for Windows folder, just rename it to <code>Windows.old<\/code> and use the <code>Disk Cleanup<\/code> utility (as Administrator)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Delete old windows \/ program files from second drive? The absurd &#8220;answers&#8221; on the microsoft community of course offer things like &#8220;Use Disk Cleanup&#8221; (which is a blatantly uneducated answer) or &#8220;just reformat the drive&#8221; (formatting avoids the problem rather than addressing it). What are the correct steps to delete these old files? TL;DR: Use [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[521,296],"class_list":["post-1560","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-stackexchange","tag-windows"],"_links":{"self":[{"href":"https:\/\/blog.briang.org\/index.php?rest_route=\/wp\/v2\/posts\/1560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.briang.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.briang.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.briang.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.briang.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1560"}],"version-history":[{"count":4,"href":"https:\/\/blog.briang.org\/index.php?rest_route=\/wp\/v2\/posts\/1560\/revisions"}],"predecessor-version":[{"id":1564,"href":"https:\/\/blog.briang.org\/index.php?rest_route=\/wp\/v2\/posts\/1560\/revisions\/1564"}],"wp:attachment":[{"href":"https:\/\/blog.briang.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.briang.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.briang.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}