How To Remove Recycle Bin From Sharepoint Navigation

Are you looking for ways to simplify your SharePoint experience by removing the Recycle Bin from the navigation? Follow these easy steps to achieve a clutter-free SharePoint interface.

To remove the Recycle Bin from SharePoint navigation, there are two different methods based on the SharePoint UI being used.

For Classic SharePoint UI, you can hide the Recycle Bin from the quick launch navigation of a specific page by adding a script editor web part with the following CSS code:

<style type="text/css">
#sideNavBox a[title="Recycle Bin"]
{
    display:none!important
}
</style>

Alternatively, you can edit the master page and add the CSS code under <asp:ContentPlaceHolder id=”PlaceHolderAdditionalPageHead” runat=”server” />. Another option is to use “Alternate CSS” from the Master page settings of the site.

For Modern SharePoint Online sites, you can remove the Recycle Bin link from the quick launch by enabling the SharePoint Server Publishing feature. First, activate the “SharePoint Server Publishing Infrastructure” feature under Site Collection Features and then activate the “SharePoint Server Publishing” feature under Site Features. This will automatically remove the Recycle Bin from the quick launch. You can also remove any other links by going to Site Settings, selecting “Navigation” under “Look and Feel,” and deleting the desired link.

It is also possible to hide the Recycle Bin link with CSS by using the code a[href$="AdminRecycleBin.aspx"] { display:none; }, which can be implemented through a modern script editor or SPFx solution.

It is worth noting that some users have reported issues with removing the Recycle Bin from Modern subsites without enabling classic features. There may not be a straightforward solution in that case.

Why Should I Remove the Recycle Bin from SharePoint Navigation?

Many users wonder about the benefit of removing the Recycle Bin from SharePoint Navigation. By doing so, you can streamline the navigation panel and simplify the user experience. However, keep in mind that removing it doesn’t delete the feature entirely. Users can still access it by searching SharePoint Recycle Bin.

Methods for Removing Recycle Bin in Classic and Modern SharePoint

In this section, you will learn the specific methods to remove the Recycle Bin from SharePoint navigation, whether you are using the Classic SharePoint UI or the Modern SharePoint Online interface. Let’s explore the steps involved in each scenario.

Classic SharePoint UI

To hide the Recycle Bin from the quick launch navigation of a specific page in Classic SharePoint UI, you can utilize CSS code. Simply add a script editor web part with the following CSS code:

“` #sideNavBox a[title=”Recycle Bin”] { display:none!important } “`

Alternatively, you can edit the master page and insert the CSS code under “. Another option is to use the “Alternate CSS” feature available in the Master Page settings of the site.

Modern SharePoint Online

Removing the Recycle Bin link from the quick launch in Modern SharePoint Online sites involves enabling the SharePoint Server Publishing feature. Follow these steps:

  1. Activate the “SharePoint Server Publishing Infrastructure” feature under Site Collection Features.
  2. Activate the “SharePoint Server Publishing” feature under Site Features.

Once these features are enabled, the Recycle Bin link will automatically be removed from the quick launch. To remove any other links, navigate to Site Settings, select “Navigation” under “Look and Feel,” and delete the desired link.

If you prefer to hide the Recycle Bin link with CSS in Modern SharePoint Online, you can use the code `a[href$=”AdminRecycleBin.aspx”] { display:none; }`. This can be implemented through a modern script editor or SPFx solution.

It is important to note that some users have reported difficulties in removing the Recycle Bin from Modern subsites without enabling classic features. In such cases, a straightforward solution may not be available.

Meet the Author

Abdul Rahim has been working in Information Technology for over two decades. Learn how Abdul got his start as a Tech Blogger , and why he decided to start this Software blog. If you want to send Abdul a quick message, then visit his contact page here.