Page 1 of 2 12 LastLast
  1.    01 Jan 2015 #1
    Join Date : Nov 2014
    UK
    Posts : 239
    Windows 10 Pro 64bit

    Deleting Windows.old


    I know that's it not important, or necessary, to remove (delete) the Windows.old folder after an update, but it's superfluous to requirement (unless reverting back at some stage).

    As I have a standalone build 9879, I decided to remove Windows.old. Ownership & permissions had to be changed for all locations which was not that easily accomplished but managed after a while but what was a problem was deleting file names that exceeded that maximum length, presumably 260 characters.

    It begs the question: how can the file name be created in the first instance by the very same operating system that prevents it's removal?

    After trying numerous suggestions, I stumbled across Robocopy:
    mkdir empty_dir
    robocopy empty_dir the_dir_to_delete /s /mir
    rmdir empty_dir
    rmdir the_dir_to_delete
      My ComputerSystem Spec
  2.    01 Jan 2015 #2
    Join Date : Oct 2014
    Posts : 391
    Windows 10x64 17035

    If you ever have to do it again disk cleanup is the easiest way to go.
      My ComputerSystem Spec
  3.    01 Jan 2015 #3

    Quote Originally Posted by cyberrufus View Post
    If you ever have to do it again disk cleanup is the easiest way to go.
    Dito.
      My ComputerSystem Spec
  4.    01 Jan 2015 #4
    Join Date : Nov 2014
    UK
    Posts : 239
    Windows 10 Pro 64bit
    Thread Starter

    Quote Originally Posted by toppergraph View Post
    Quote Originally Posted by cyberrufus View Post
    If you ever have to do it again disk cleanup is the easiest way to go.
    Dito.
    Still doesn't answer the question: how can the file name be created in the first instance by the very same operating system that prevents it's removal?
      My ComputerSystem Spec
  5.    01 Jan 2015 #5
    Join Date : Oct 2013
    Posts : 25,674
    64-bit Windows 10 Pro build 17046

    The Windows.old folder is a considered a system folder, and Windows will not let you manually delete it easily by default to protect it.

    https://www.tenforums.com/tutorials/2...dows-10-a.html
      My ComputersSystem Spec
  6.    01 Jan 2015 #6

    Quote Originally Posted by WightWalker View Post
    Quote Originally Posted by toppergraph View Post
    Quote Originally Posted by cyberrufus View Post
    If you ever have to do it again disk cleanup is the easiest way to go.
    Dito.
    Still doesn't answer the question: how can the file name be created in the first instance by the very same operating system that prevents it's removal?
    I am not compleatly sure of what the problem is, if you have WIN 10 installed ONLY(I presume new install not upgrade on a stand alone pc) Why do you have windows.old anyway?. Do you mean after preview build installations(not normal updates)?.
      My ComputerSystem Spec
  7.    01 Jan 2015 #7
    Join Date : Jan 2014
    Oak Ridge TN, USA
    Posts : 24,523
    Windows 10 Pro x64

    Quote Originally Posted by toppergraph View Post
    Quote Originally Posted by WightWalker View Post
    Quote Originally Posted by toppergraph View Post
    Quote Originally Posted by cyberrufus View Post
    If you ever have to do it again disk cleanup is the easiest way to go.
    Dito.
    Still doesn't answer the question: how can the file name be created in the first instance by the very same operating system that prevents it's removal?
    I am not compleatly sure of what the problem is, if you have WIN 10 installed ONLY(I presume new install not upgrade on a stand alone pc) Why do you have windows.old anyway?. Do you mean after preview build installations(not normal updates)?.
    Post #5 is the answer to the question.
    It's a system folder and you need to use the disk cleanup to remove it from you system.
      My ComputerSystem Spec
  8.    01 Jan 2015 #8
    Join Date : Nov 2014
    UK
    Posts : 239
    Windows 10 Pro 64bit
    Thread Starter

    Quote Originally Posted by toppergraph View Post
    I am not completely sure of what the problem is, if you have WIN 10 installed ONLY(I presume new install not upgrade on a stand alone pc) Why do you have windows.old anyway?. Do you mean after preview build installations(not normal updates)?.
    It was originally a clean build 9879 with subsequent routine updates; can only assume that one of these created the .old folder.

    Quote Originally Posted by BunnyJ View Post
    It's a system folder and you need to use the disk cleanup to remove it from you system.
    I didn't have a problem removing the bulk of Windows.old by taking ownership & managing the permissions accordingly; being a Windows 7 user, I hadn't realised the existence of Disk Cleanup.

    I simply thought it curious that 4 files remained that had file names with a length greater than that supported by the OS which must have created the files in the first instance.
      My ComputerSystem Spec
  9.    01 Jan 2015 #9

    Quote Originally Posted by WightWalker View Post
    It was originally a clean build 9879 with subsequent routine updates; can only assume that one of these created the .old folder.

    Quote Originally Posted by BunnyJ View Post
    It's a system folder and you need to use the disk cleanup to remove it from you system.
    I didn't have a problem removing the bulk of Windows.old by taking ownership & managing the permissions accordingly; being a Windows 7 user, I hadn't realised the existence of Disk Cleanup.

    I simply thought it curious that 4 files remained that had file names with a length greater than that supported by the OS which must have created the files in the first instance.
    No body Knows All to the mystrey`s of any O/S unless you Wright your own. But disk cleanup has been with windows scince I can rember. Where your win.old came from ;I don`t Know. but your now sorted Thanks to #5 .
      My ComputerSystem Spec
  10.    01 Jan 2015 #10
    Join Date : Sep 2014
    Nashville, TN
    Posts : 3,143
    Windows 10 Pro

    Quote Originally Posted by WightWalker View Post
    It begs the question: how can the file name be created in the first instance by the very same operating system that prevents it's removal?
    First, the obligatory Beg The Question // Get it right.

    Now that I've annoyed everyone with my pedantics, the answer to the question you "raised" is that there is a difference between the allowed character length in the filesystem, versus the allowed length in the interface you use to access the file (ie command line or GUI). The Filesystem (obviously) allows longer characters, but the command line does not. That is because the command line must work with many kinds of filesystems, some of which do not allow such long names, and because the OS is based on (in effect) DOS from many years ago and there are still certain holdovers. In particular, many of the command line utilities have file length limitations that are far below what the filesystem can handle.
      My ComputerSystem Spec

 
Page 1 of 2 12 LastLast


Similar Threads
Thread Forum
Deleting fonts
Is there a way to delete a font in windows 10 build 9860? I used to delete fonts in win8 and win 10( previous build) by right clicking and delete but the new build will not allow to do that.
Customization
Solved deleting mail
WIN 10 build 10162. How do I delete all mail at once? Mail I do not want to read, junk mail etc. How do I empty the junk folder?
Browsers and Email
Microsoft account and deleting all settings of Windows 10 Preview
Hi I am using an account with Microsoft Windows 10 Preview and I saved all settings in an account live.it. How do I delete all these settings so that when will reinstall Windows 10 with the same Microsoft account, all the default settings...
General Support
Solved Deleting Recovery Image folder
Hi, I was searching my drive to clear space. I came accross the Recovery Image folder, and I wanted to clear it, but wasn't sure if it was safe to do so. I'm not too bothered if I don't have an image to fall back to. It's just that I'm on a 250GB...
General Support
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 11:26.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums