SharePoint Online: Hide Recycle Bin from Quick Launch

Requirement: Hide Recycle bin from SharePoint Online Quick Launch

hide recycle bin in sharepoint online

How to Hide Recycle bin in SharePoint Online?

The recycle bin link was not relevant for site visitors as they can’t delete from the site or restore from the Recycle bin, and we wanted to hide the recycle bin from the Quick Launch in SharePoint Online.

Case 1: Hide Recycle bin from quick launch in Classic SharePoint UI

If you are using classic experience sites in SharePoint Online sites, you can hide the recycle bin from the quick launch of a particular page with this CSS. Just edit the page, add a script editor web part, and place this CSS in it.

sharepoint online hide recycle bin from quick launch

CSS to hide recycle bin in SharePoint Online:

<style type="text/css">
#sideNavBox a[title="Recycle Bin"]

This hides the recycle bin link from the quick launch navigation of a specific page. If you want to do it at the site level, you can either edit the master page and place the above CSS under:

<asp:ContentPlaceHolder id="PlaceHolderAdditionalPageHead" runat="server" />

Otherwise, you can use “Alternate CSS” from Master page settings of the site.

Case 2: Remove Recycle bin from quick launch in Modern SharePoint Online Sites

If you have a modern site, you can remove the “Recycle bin” link from the quick launch (or any link in the left navigation) with the help of the “Navigation” option of the SharePoint publishing feature. First, make sure you have the publishing server feature enabled at both Site collection and at the site level.

  1. Go to Site Settings >> Click on Site Collection Features >> Activate “SharePoint Server Publishing Infrastructure” feature. It takes a moment to activate the feature.
  2. Once activated, click on “Site Features” link from site settings >> Activate “SharePoint Server Publishing” feature.

Once the publishing feature is enabled, the recycle bin is removed from the quick launch automatically! Similarly, you can hide any link such as “Site Contents” from SharePoint Online quick launch bar by:

  • Go to Site settings >> Click on “Navigation” under “Look and Feel”
  • Now, you can select and delete any link from the current launch navigation.
  • Click the OK button to save the changes to the navigation.
    sharepoint online remove recycle bin from quick launch
  • That’s all! The changes will be saved, and you will be returned to the Site Settings page.
You can also add the link to the navigation and set audience targeting to show recycle bin only to specific user or group!

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!

2 thoughts on “SharePoint Online: Hide Recycle Bin from Quick Launch

  • May 5, 2021 at 1:42 PM

    In Communication sites, option 2 isn’t available, so I’m still looking for a solution.

  • September 29, 2020 at 9:38 AM

    I was kind of looking for this! I was able to turn off quick launch navigation successfully, but Recycle Bin remained. But thanks to this, solved now! Thanks for sharing.


Leave a Reply