How to Remove “Add shortcut to OneDrive” in SharePoint Online?

The “Add Shortcut to OneDrive” is a handy new feature in SharePoint Online to add any Library, Folder, or File shortcuts to a user’s OneDrive, so that you can visit them later.

How does the “Add Shortcut to OneDrive” Feature work?

The “Add shortcut to OneDrive” feature is a great new way to keep track of all the frequent libraries, folders, and documents you use regularly. Upon clicking the link, it creates a shortcut link in your OneDrive for Business under the “My files” view so that you can use OneDrive for Business to assemble links for SharePoint Online.

remove add shortcut to onedrive from sharepoint sites

How to remove “Add shortcut to OneDrive”?

Problem: When users add SharePoint libraries as shortcuts, the OneDrive client on the user’s machine will attempt to sync everything (including all the files/folders in those shortcut libraries), and when the total size of the synced libraries exceeds their storage space, this immediately fills out the user’s disk space! While “Files on-Demand” settings can mitigate this issue, that’s not the case with most users!

So, Here is the PowerShell script to disable add shortcut to OneDrive. Once you run this PowerShell Shell cmdlet, the Add shortcut to OneDrive option is removed from SharePoint Online document libraries. However, existing shortcuts remain in place on OneDrive.

Connect-SPOService ""

Set-SPOTenant -DisableAddShortCutsToOneDrive $True

It took about 15 minutes to propagate on all sites in my tenant, and the “Add shortcut to OneDrive” is totally removed on all sites. Please note, this PowerShell disables the “Add Shortcut to OneDrive” from all sites in the tenant (Not on specific sites). To turn ON add a shortcut to OneDrive back, use:

Set-SPOTenant -DisableAddShortCutsToOneDrive $False

Here is the script in action: Add Shortcut to OneDrive buttons removed!

how to remove add shortcut to onedrive

Salaudeen Rajack

Salaudeen Rajack is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

11 thoughts on “How to Remove “Add shortcut to OneDrive” in SharePoint Online?

  • Hi, Do I need to be a global admin to do this or will SP admin suffice?

  • Will this work for disabling the Sync option? having both options causes issues for users.

  • The “Add shortcut to OneDrive” is missing for me. Would you know how to add it back?

  • I will go with Trond, what happens if we disable the feature ad user’s have shortcut? i know it will remain heir but will it be effective? let say they delete a file from that shortcut would it still delete he file from the library? Thanks

  • Thanks for this!

    How will this setting play out for users that already have added a shorcut to OneDrive? Will the shortcuts be removed, any notifcations? Hard to tell since this setting is only available tenant wide and not possible to test on a site.

    • Any folders that have already been added will remain on the user’s computer!

  • The other problem shows up when a user adds the shortcut of folder in a library they also have synced to the same PC. The synced library stops syncing without a lot of explanation to the user, and chaos ensues.

    Thanks for sharing this, we may need to use this to prevent these issues.

  • Thank you for sharing this! 🙂


Leave a Reply