Forum Discussion
Remove "Add shortcut to OneDrive" from Sharepoint Sites
Go to your OneDrive online and delete the SharePoint shortcut folder , done
Best To all
- KaRocksOct 06, 2021Copper ContributorBut it looks like the files are deleted that were synced and I'm afraid that the files will be deleted. Do we know if that is the case?
- BishopstonITFeb 23, 2022Brass Contributor
this didn't work for me the first few times either. tried a week later and it worked....?
use the following:
Connect-SPOService "https://domain-admin.sharepoint.com"
Set-SPOTenant -DisableAddShortCutsToOneDrive $True
you can use "Get-SPOTenant" to see if it has worked - the parameter is actually listed as "DisableAddToOneDrive", but using this parameter doesn't work (you have to use the one listed above)
I wanted this disabled, as over the last year a couple of users have "somehow" deleted the whole sharepoint document library, and I'm pretty sure it's something to do with this shortcut (as discussed in below article)
https://answers.microsoft.com/en-us/msoffice/forum/all/deleting-a-sharepoint-shortcut-to-onedrive/c5cfc06b-a87b-48a8-bc83-cba045f93720
- mgudites1Sep 29, 2021Brass Contributor
MavDovlat Riiiiiiiiight, but that doesn't stop users from creating the shortcuts in the first place. It breaks the existing "Sync" between SharePoint and their OneDrive desktop clients, the data stops syncing, and then other people on the team aren't seeing the user's changes to the SharePoint library because the user doesn't understand it's not actually syncing anymore.. That's the problem.