We want to hide Export to Excel, Power Apps and Power Automate from Document Libraries of a site collection. How to achieve this ?

Also can we hide Return to classic sharepoint in the left bottom?
We want to hide Export to Excel, Power Apps and Power Automate from Document Libraries of a site collection. How to achieve this ?

Also can we hide Return to classic sharepoint in the left bottom?
Hi, @sajithgh ,
To hide these buttons, you can create a application customizer to inject CSS or JS to hide the element. Here is a tutorial about how to do it.
For the return to classic link, you can only disable/enable it on tenant level. Use the PowerShell cmdlet
Set-SPOTenant -DisableBackToClassic $true
If you get error saying the parameter does not exist, you many need to update your PowerShell to latest version.
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
I tried the below steps. It is not working.
No other option other than application customizer ?
Also is there any option to hide left app navigation ?

Hi, @sajithgh ,
There is no out-of-box features available to hide the command bar in the modern page. The app navigation you post is the new app launcher. It is not supported to hide the whole app launcher.
Creating an application customizer to inject CSS or JS to hide the element will not work for Three Dots,Power Apps and Power Automate etc. Please advise.
1) Three Dots - The id - splitbuttonprimary is not unique

2) Power Apps, Power Automate, upload uses focuszone random ids which we cannot rely.


4 people are following this question.