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


  1. Posts : 99
    Dual-boot Win 7 & 10, both Pro 64-bit
       12 Jun 2016 #1

    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?
      My ComputerSystem Spec


  2. Posts : 3,701
    Win10 Home and Pro, Win10 Insider Preview, Win7 Home, Linux Mint
       12 Jun 2016 #2

    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
      My ComputerSystem Spec


  3. Posts : 99
    Dual-boot Win 7 & 10, both Pro 64-bit
    Thread Starter
       12 Jun 2016 #3

    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.
    Last edited by glnz; 12 Jun 2016 at 10:26.
      My ComputerSystem Spec


  4. Posts : 3,701
    Win10 Home and Pro, Win10 Insider Preview, Win7 Home, Linux Mint
       12 Jun 2016 #4

    glnz said: View Post
    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.
    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.
      My ComputerSystem Spec


  5. Posts : 99
    Dual-boot Win 7 & 10, both Pro 64-bit
    Thread Starter
       25 Dec 2016 #5

    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?
      My ComputerSystem Spec


  6. Posts : 3,701
    Win10 Home and Pro, Win10 Insider Preview, Win7 Home, Linux Mint
       25 Dec 2016 #6

    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.
      My ComputerSystem Spec


  7. Posts : 99
    Dual-boot Win 7 & 10, both Pro 64-bit
    Thread Starter
       25 Dec 2016 #7

    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?
      My ComputerSystem Spec


  8. Posts : 3,701
    Win10 Home and Pro, Win10 Insider Preview, Win7 Home, Linux Mint
       25 Dec 2016 #8

    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.
      My ComputerSystem Spec


 

Related Threads
Network & Sharing Add or Remove Shared Folders from OneDrive in Tutorials
How to Add or Remove Shared Folders from Your OneDrive You can easily save your files to OneDrive and get to them from any device, like your Windows 10 PC, Windows 10 tablet, or Windows 10 Mobile phone. You can use OneDrive to share photos,...
hi sometimes i get stuck with a error that it cant delete a folder because of too long filename or it says it's in use when infact it isn't is there some nice tool for this?
Hello, Here's one I have never run across before. New user to W10 on a new Dell 8900. All seems fine, but... I have a bunch of Folders, documents and shortcuts that I tried to Delete. Put them all in the Recycle Bin. No longer on Desktop.
I've been backing up some of my stuff on OneDrive, and today, when I tried to rename one of the folders on OneDrive I got an error message saying that the path was too long. I clicked No/Cancel/Whatever-it-was-called thinking that it would abort the...
Hi again, My c:/users/administrator/appdata/local is chock full of empty subfolders like: {000C498C-FC08-4468-9B95-07B748-F5BE61 How on Earth did they get there and can I safely remove them? Thanx. Edwin
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 12:51.
Find Us