Windows 10: Not deleting old OneDrive folders - rmdir is missing

Discus and support Not deleting old OneDrive folders - rmdir is missing in Windows 10 Performance & Maintenance to solve the problem; On my Win 10 Pro 64-bit, I ran autoruns. I get these entries together showing that they are not being run because rmdir is... Discussion in 'Windows 10 Performance & Maintenance' started by glnz, Jun 11, 2016.

  1. glnz Win User

    Not deleting old OneDrive folders - rmdir is missing


    On my Win 10 Pro 64-bit, I ran autoruns. I get these entries together showing that they are not being run because rmdir is missing:"HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" "" "" "" "5/15/2016 12:11 PM" ""
    + "Uninstall C:\Users\MyName\AppData\Local\Microsoft\OneDrive\17.3.6201.1019_1" "" "" "File not found: rmdir" "" ""
    + "Uninstall C:\Users\MyName\AppData\Local\Microsoft\OneDrive\17.3.6201.1019_1\amd64" "" "" "File not found: rmdir" "" ""
    + "Uninstall C:\Users\MyName\AppData\Local\Microsoft\OneDrive\17.3.6281.1202\amd64" "" "" "File not found: rmdir" "" ""
    + "Uninstall C:\Users\MyName\AppData\Local\Microsoft\OneDrive\17.3.6301.0127\amd64" "" "" "File not found: rmdir" "" ""
    + "Uninstall C:\Users\MyName\AppData\Local\Microsoft\OneDrive\17.3.6302.0225\amd64" "" "" "File not found: rmdir" "" ""
    + "Uninstall C:\Users\MyName\AppData\Local\Microsoft\OneDrive\17.3.6386.0412\amd64" "" "" "File not found: rmdir" "" ""
    In autoruns, if I select/highlight the first "Uninstall" row above, I see the following at the bottom of my screen:C:\WINDOWS\system32\cmd.exe /q /c rmdir /s /q "C:\Users\MyName\AppData\Local\Microsoft\OneDrive\17.3.6201.1019_1"
    Also, in my folder C:\Users\MyName\AppData\Local\Microsoft\OneDrive\ , the first two subfolders above exist, but the others aren't there any more. I guess the others were deleted already. (Also, it seems my current version of OneDrive is 17.3.6390.0509, and there is a folder for that in C:\Users\MyName\AppData\Local\Microsoft\OneDrive\ .)

    So, it seems I am missing rmdir and some old OneDrive folders are not getting deleted. Or the cmd line above is simply wrong?

    What do you think?

    :)
     
  2. Rolando Vil, Jun 11, 2016
    #2
  3. Allan Mej Win User
    Prooblems accessing documents

    Hi Jilly,

    After assessing your statement and the error message, it simply implies that
    C:User\jilly\OneDrive\Documents
    is missing or deleted. According to your statement above, you deleted documents folder in OneDrive, therefore, it really is deleted. A simple workaround regarding your issue is creating a new documents
    folder on that path.

    Let us know how things go.

    Regards.
     
    Allan Mej, Jun 11, 2016
    #3
  4. Berton Win User

    Not deleting old OneDrive folders - rmdir is missing

    The command rmdir goes back in DOS days quite a ways. One thing it relies on is that a directory [renamed to Folders in later versions of Windows] be completely empty before it will work. I don't use OneDrive but could it be the 'cloud' is still holding files that sync back to the computer?
    rmdir at DuckDuckGo
     
    Berton, Jun 11, 2016
    #4
  5. glnz Win User
    Berton - thanks for quick reply.
    I'm just a tourist, not a PowerUser such as yourself. But I would normally guess that upgrades to OneDrive would not change the actual cloud location where my very few documents are stored or the link between my PC and my cloud location. I think I sent only one or two docs to OneDrive just to test and have mostly forgotten about it.
    Also, what about the note that rmdir is "not found"?
    EDIT - (I ran a search in C:\ for rmdir and there is no search result. But if I open cmd and type rmdir /? , I get the short instructions for using rmdir. So wha' happening, man?)
    EDIT - Also just ran sfc /scannow - no integrity violations.
     
  6. Berton Win User
    As I recall from DOS days and class I took at the college, that command is not a file but built into the Operating System, is part of the OS. There's quite a few commands like that and most still exist in the latest versions of Windows at the Command Prompt. The first EDIT is correct, typing rmdir /? or many other such commands gives a list of switches that can be used with the command. An example would be opening a Command Prompt window and typing dir /s/o which will list all the files and Folders in the C:\Users\USERNAMEHERE Folder. Adding /p gives a screen-full at a time. Adding >dir.txt [without the /p] gives a text document in that Folder for reading and/or printing.
     
    Berton, Jun 11, 2016
    #6
  7. glnz Win User
    Just checking again, and today autoruns shows ONLY these, shaded in yellow:

    Uninstall C:\Users\[My Name]\AppData\Local\Microsoft\OneDrive\17.3.6390.0509_1 File not found: rmdir
    Uninstall C:\Users\[My Name]\AppData\Local\Microsoft\OneDrive\17.3.6390.0509_1\amd64 File not found: rmdir

    By the way, both such sub-folders exist.

    I also have
    C:\Users\[My Name]\AppData\Local\Microsoft\OneDrive\17.3.6201.1019_1 and
    C:\Users\[My Name]\AppData\Local\Microsoft\OneDrive\17.3.6720.1207

    This is all a bit confusing - what exactly is MS doing here?
     
  8. Berton Win User

    Not deleting old OneDrive folders - rmdir is missing

    I wonder if OneDrive is all about synchronizing files on the computer with storage on the cloud. A possible solution may be to save all the data on the cloud onto an External USB drive, unplug it then disable OneDrive followed by cleaning up the hard drive. Then start new with OneDrive. Granted, it would be time consuming but maybe less stressful.
     
    Berton, Dec 24, 2016
    #8
  9. glnz Win User
    Berton - could it be that when OneDrive does a small update, it tries to delete the folders for the prior sub-version?

    Since I have C:\Users\[My Name]\AppData\Local\Microsoft\OneDrive\17.3.6720.1207 ,
    should the folders for prior versions 6201 and 6390 have been deleted?
     
  10. Berton Win User
    I really don't know if there's supposed to be an automatic deletion of old data or Folders, haven't run into that issue yet.
     
    Berton, Apr 4, 2018
    #10
Thema:

Not deleting old OneDrive folders - rmdir is missing

Loading...
  1. Not deleting old OneDrive folders - rmdir is missing - Similar Threads - deleting old OneDrive

  2. Help with deleting an old Onedrive

    in Windows 10 Gaming
    Help with deleting an old Onedrive: Hi, I am having huge problems with an old NHS drive on my own laptop conflicting with my personal Onedrive, and losing data as a result. I have left the NHS and it isn't an option to ask them to remove it as I no longer have any NHS accounts. I have tried every method I can...
  3. Help with deleting an old Onedrive

    in Windows 10 Software and Apps
    Help with deleting an old Onedrive: Hi, I am having huge problems with an old NHS drive on my own laptop conflicting with my personal Onedrive, and losing data as a result. I have left the NHS and it isn't an option to ask them to remove it as I no longer have any NHS accounts. I have tried every method I can...
  4. Help with deleting an old Onedrive

    in Windows 10 Drivers and Hardware
    Help with deleting an old Onedrive: Hi, I am having huge problems with an old NHS drive on my own laptop conflicting with my personal Onedrive, and losing data as a result. I have left the NHS and it isn't an option to ask them to remove it as I no longer have any NHS accounts. I have tried every method I can...
  5. Deleting old windowsapps folder

    in Windows 10 Network and Sharing
    Deleting old windowsapps folder: For some reason I can't remember, I made a new WindowsApps folder on my D: drive, and now that I try to delete the previous windowsapps folder, I'm unable. I've tried changing ownership of the file to myself, everyone, system etc. and I am told that I need permission every...
  6. Deleting old windowsapps folder

    in Windows 10 Gaming
    Deleting old windowsapps folder: For some reason I can't remember, I made a new WindowsApps folder on my D: drive, and now that I try to delete the previous windowsapps folder, I'm unable. I've tried changing ownership of the file to myself, everyone, system etc. and I am told that I need permission every...
  7. Deleting old windowsapps folder

    in Windows 10 Software and Apps
    Deleting old windowsapps folder: For some reason I can't remember, I made a new WindowsApps folder on my D: drive, and now that I try to delete the previous windowsapps folder, I'm unable. I've tried changing ownership of the file to myself, everyone, system etc. and I am told that I need permission every...
  8. How do I delete an old OneDrive folder?

    in Windows 10 Network and Sharing
    How do I delete an old OneDrive folder?: OneDrive was unable to complete a sync. After wasting too much time jumping through mindless hoops with Microsoft OneDrive support, I unlinked OneDrive and then relinked it to cache to a new location. So OneDrive works fine now. But I'm left with a large legacy folder...
  9. Onedrive has moved my Documents folder and deleted the old data

    in Windows 10 Network and Sharing
    Onedrive has moved my Documents folder and deleted the old data: Two days ago. I had a small problem with my SD drive D: on my Surface Book 2. For some reason I couldn't read it. So I restarted my SB2 and got it back. Before this, I moved my Documents folder to Because of that, I decided to copy not move my Documents to OneDrive. Two...
  10. Old Windows folder delete

    in Windows 10 Network and Sharing
    Old Windows folder delete: I just installed win 10 . I have 2 more drives with Win7 OS( Windows folders) in them. I am trying to delete these folders in vain. I am logged in as administrator. Any ideas?...