Hide recycle bin in SharePoint 2010

May 8, 2011 — 8 Comments

How to hide recycle bin and view all site contents in SharePoint 2010 or Remove ‘All Site Content’ and ‘Recycle Bin’ link ?

Hide recycle bin in SharePoint 2010

1. Open your master page.  In this example, I opened V4.Master.  Go above </head> and past the following CSS code

 1: <style>  
 2: .s4-specialNavLinkList
 3: {   
 4: display:none !important;
 5: }  
 6: </style>

CSS code to Hide Recycle Bin in SharePoint 2010

2. Check in your master page and publish your master page as Major version for everyone to see your change.  Now go back to you site and you won’t see View All Site Contents and Recycle Bin in SharePoint 2010 Pages.

Removed 'All Site Content' and ‘Recycle Bin’

Removed ‘All Site Content’ and ‘Recycle Bin’ link in SharePoint 2010 using CSS code

8 responses to Hide recycle bin in SharePoint 2010

  1. 

    Hi Aryan,

    I’ve used your HTML to remove the recycle bin and all site content but it leaves a box at the top left where the recycle bin and all site content was which stops the rest of the page moving to the left.
    Could you tell me how to remove the box?
    Otherwise very good
    Many thanks Simon

  2. 

    Hi, thanks for the help, it works but only the administrators see the changing, the users or visitants see the all site content…can you help?

  3. 

    Hi,
    Can you tell me how can we remove or hide the “Lists” link button which is used to create new list. If we delete from navigation then the lists name under “Lists” link button is spliting. I mean, if we create 2 lists with large name which will go under “Lists” link button. if we delete this “Lists” link button from navigation then my list name is spliting in new line. So i want to hide the option “Lists” link button from left navigation.How can i do this?
    Thanks,
    Vishwa

  4. 

    ul.s4-specialNavLinkList>:first-child{
    display:none;
    }

    This will remove just the recycle bin.

  5. 

    Hi,
    I have tried to remove both (Recycle bin and All sitecontent) with this code in v4.master. If Sharepoint\admin is logged everything looks well, this two links are disabled. For other users NOT. Any idea?
    Thanks a lot.
    Regards
    Marcela

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s