Windows 10: How can I remove a folder from OneDrive sync without deleting it

Discus and support How can I remove a folder from OneDrive sync without deleting it in Windows 10 Gaming to solve the problem; Hello,I have a 4GB Virtual Machines folder in my Documents folder, and OneDrive is complaining and sending notifications every 10 minutes.I read on the... Discussion in 'Windows 10 Gaming' started by Cookie_1997, Apr 2, 2023.

  1. How can I remove a folder from OneDrive sync without deleting it


    Hello,I have a 4GB Virtual Machines folder in my Documents folder, and OneDrive is complaining and sending notifications every 10 minutes.I read on the support articles on how to remove a folder from sync, but all that does is delete the folder from my computer and keep it in OneDrive...How can I stop OneDrive from syncing a specific folder without deleting it?I did check the settings, and in 'Back up important PC folders to OneDrive', there's only the option to stop backing up the entire Documents folder, not one folder.also how does this make sense?

    :)
     
    Cookie_1997, Apr 2, 2023
    #1

  2. Trouble deleting a folder

    Thanks for the suggestion but it says "delete folder failed for E:\....." for each folder I try.

    *Confused How can I remove a folder from OneDrive sync without deleting it :confused:

    Will I be forever stuck with these unnecessary folders? *Oh Well How can I remove a folder from OneDrive sync without deleting it :eek:hwell:
     
    oli_ramsay, Apr 2, 2023
    #2
  3. MCK
    mck Win User
    Unable to remove onedrive folder

    Did that but still getting the error msg "The action can't be completed because the folder or a file in it is open in another program." when trying to rename the OneDrive folder. Thanks.

    - - - Updated - - -

    Was finally able to delete the OneDrive folder.

    After doing all of the previous suggestions, I was never able to rename the OneDrive folder and kept getting the error message: "The action can't be completed because the folder or a file in it is open in another program."

    I decided to just go ahead and try to delete the OneDrive folder without the safety precaution of renaming it first. Here's what happened:

    1. I did a shift+delete to delete the OneDrive folder without putting it into Win10's recycle bin.
    2. Surprisingly the contents of the OneDrive folder started to be deleted. It took a long time and displayed a progress bar because it was 85GB in size.
    3. Toward the end of the deletion process, it said it could not delete a file because it was open in Macrium Reflect. I did not use Macrium during this boot up so Macrium was running in the background due to some auto start on boot. It gave the choice to skip the file so I clicked that and the deletion procedure completed.
    4. But the OneDrive folder was still present.
    5. I tried to delete it again and got the same message about Macrium.
    6. However, when I checked the size of the OneDrive folder, the 85GB was gone and it was only some kilo bytes in size.
    7. I went into Task Manager and did an End Task for the 3 Macrium processes that were running.
    8. Now I was able to delete the OneDrive folder.
    So it appears that "maybe" the reason I could not rename the OneDrive folder "because a file was open in another program" was because of the auto start Macrium Reflect processes. Too bad that Microsoft programmers could not see fit to say which program it was during the rename process, but luckily did say which program it was in the delete process.

    EDIT: I just rechecked and the OneDrive folder is still present. Either it appeared to have been deleted or I missed seeing it after step-8 above. But I'll just leave it since it only contains 1.46 MB of data. Though I'll need to check it later to see if it increases in size.

    Thanks to the folks who helped and hope this info helps others,
     
  4. Kari Win User

    How can I remove a folder from OneDrive sync without deleting it

    OneDrive Sync Issue


    Honestly, I don't understand why you haven't already tried to boot with WinPE or other live disk and manually remove the file? This example using Macrium WinPE boot disk, download Macrium Free and let it create a boot disk for you. Option to create one is shown automatically when you launch Macrium first time:

    How can I remove a folder from OneDrive sync without deleting it 28714d1485953804t-onedrive-sync-issue-2015-08-06_00h31_38.png


    1. Switch to C: drive
    2. Change the working folder to your OneDrive folder
    3. Check that the file has no Read Only (r) and System (s) attributes set. As the file name in your case is quite long, you don't have to type the full name. Use the *.* wildcard to replace any number of characters in file name and any extension, in your case command attrib .849C*.* should be enough
    4. If r and / or s attributes are shown for the file, remove them with command attrib .849C*.* -r -s
    5. Check that attributes r & s are removed
    6. Delete the file with del .849C*.*
    (Steps 3 & 5 not necessary; step 3 because removing attributes as in step 4 removes them if set but does no harm if not set, and step 5 because the attrib command works for 100% sure if no error messages are given.)

    The file should be removed now. You can test with command dir .849C*.*, it should not be shown anymore.
     
    Kari, Apr 2, 2023
    #4
Thema:

How can I remove a folder from OneDrive sync without deleting it

Loading...
  1. How can I remove a folder from OneDrive sync without deleting it - Similar Threads - remove folder OneDrive

  2. OneDrive : How to not sync a folder into OneDrive Folder

    in Windows 10 Gaming
    OneDrive : How to not sync a folder into OneDrive Folder: Hello,I have a question, I actually use 2 computers, with my Documents folder synced with OneDrive, all works, it's perfect.But, I have in my Documents, a folder with save file from a game that I play on the 2 computers, and I cant change save directory.It is possible to...
  3. OneDrive : How to not sync a folder into OneDrive Folder

    in Windows 10 Software and Apps
    OneDrive : How to not sync a folder into OneDrive Folder: Hello,I have a question, I actually use 2 computers, with my Documents folder synced with OneDrive, all works, it's perfect.But, I have in my Documents, a folder with save file from a game that I play on the 2 computers, and I cant change save directory.It is possible to...
  4. How to exclude a folder from OneDrive syncing?

    in Windows 10 Gaming
    How to exclude a folder from OneDrive syncing?: I don't need to sync some folders in OneDrive example node_modules or temp folder, but I need to keep on my PC only without syncing it. Other folders need to be synced....
  5. How to exclude a folder from OneDrive syncing?

    in Windows 10 Software and Apps
    How to exclude a folder from OneDrive syncing?: I don't need to sync some folders in OneDrive example node_modules or temp folder, but I need to keep on my PC only without syncing it. Other folders need to be synced....
  6. How to remove folder from Photos App without deleting it?

    in Windows 10 Gaming
    How to remove folder from Photos App without deleting it?: The title says it all. I like using the Photos App to view my photos. However, I do not want it to display every photo, only ones from a folder that I specify. I went to Folders > Add a folder and added my "Photos" folder. However, I forgot that it had some photos that I...
  7. How to remove folder from Photos App without deleting it?

    in Windows 10 Software and Apps
    How to remove folder from Photos App without deleting it?: The title says it all. I like using the Photos App to view my photos. However, I do not want it to display every photo, only ones from a folder that I specify. I went to Folders > Add a folder and added my "Photos" folder. However, I forgot that it had some photos that I...
  8. How can I remove a folder from OneDrive sync without deleting it

    in Windows 10 Software and Apps
    How can I remove a folder from OneDrive sync without deleting it: Hello,I have a 4GB Virtual Machines folder in my Documents folder, and OneDrive is complaining and sending notifications every 10 minutes.I read on the support articles on how to remove a folder from sync, but all that does is delete the folder from my computer and keep it in...
  9. How can I remove something from OneDrive without deleting it on my computer?

    in Windows 10 Ask Insider
    How can I remove something from OneDrive without deleting it on my computer?: It’s seriously frustrating. I have a folder on my local computer with a few files that are too big to sync, but OneDrive tries anyways. If I try to exclude the folder from syncing I get an error because the files aren’t synced yet. Of course they aren’t. I’ve read that I...
  10. Removing folder from library without deleting it

    in Windows 10 Performance & Maintenance
    Removing folder from library without deleting it: One of my folders appears in 2 libraries. If I delete the folder from the wrong library, it gets actually deleted from both libraries AND ALSO FROM MY "DOCUMENTS" and sent to the bin. How can I remove it from that wrong library but not from my Documents nor from my other...