Forum Discussion

Cloud_S1984's avatar
Cloud_S1984
Copper Contributor
Sep 02, 2020

Unlink OneDrive and stop syncing

Hi

We have about 200 computeres where many of the users are syncing the sharepoint library down to the local PC.

Now we need to move some data accross the sites, to do that will we be sure to remove/unlink the onedrive from users PC so they do not sync anymore.

The steps should be like this:

1. Unlick the OneDrive

2. Remove/Delete all local files on PC

 

After we have moved data then the user need to use OneDrive again.

 

How can we do this from script/logon or GPO.

Powershell or cmd.

 

Thanks

  • Cloud_S1984 Unfortuneately I don't think this is possible. The closest thing you might be able to do I remember seeing a GPO that would force SharePoint sync's to only use OnDemand and not sync locally. That might be able to be used to have the library be OnDemand so when it's removed no local files exist. 

     

    OneDrive really needs to "Delete local files" when someone loses access to a library. Other products have this option and is an option, but just being able to set one way globally or the other for now would be ideal since adding in an option would be a much larger ask. StephenRice  got anything to add to this or ideas? Not sure if there is a user voice for being able to delete files off user machines when libraries get removed / people lose access to things but it's def. something sorely needed in the product as all the artifacts that get left behind when even manually unsyncing leaves behind can cause issues IMO with data staying consistent in the org.

Resources