How to disable “Return to Classic SharePoint” in SharePoint Online?

In modern SharePoint Online sites, You’ll find the link “Return to Classic SharePoint” in the bottom left corner below quick launch – for backward compatibility. On clicking, the link reverts the current list or library to classic mode. Similarly, On the classic UI, there’s a corresponding link, “Exit classic experience.”

disable return to classic sharepoint online

SharePoint Online: Remove return to classic SharePoint option

You may want to disable the “Return to Classic SharePoint” link or hide it from the left navigation menu of modern SharePoint sites to prevent users to have the ability to switch between the two experiences. Here is the PowerShell script to disable return to classic SharePoint.

#Connect to SharePoint Online
Connect-SPOService -Url

#Disable "Return to Classic SharePoint"
Set-SPOTenant -DisableBackToClassic $True

This applies at the tenant level; running the above script will remove the “Return to classic SharePoint” option for all sites across the tenant.

Enable Return to classic link in SharePoint Online

To show the link again, run the following PowerShell cmdlet:

#Enable "Return to Classic SharePoint"
Set-SPOTenant -DisableBackToClassic $False

It takes a while to propagate this change to all sites in the tenant.

Remove return to classic SharePoint option using CSS

You can also hide return to the classic SharePoint option with CSS:

.LeftNav-subLinks a {
display: none;

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!

4 thoughts on “How to disable “Return to Classic SharePoint” in SharePoint Online?

Leave a Reply