In this SharePoint tutorial, we will discuss SharePoint recycle bin, how to Change recycle bin settings in SharePoint? And how to remove the “Recycle Bin” link from SharePoint site.
This article explains the two-stage recycle bin in SharePoint, Looking for the Recycle Bin in SharePoint 2013? You won’t find it in its previous location (quick launch with All Site Content). In a SharePoint site, the recycle bin provides temporary storage for all items deleted from that site.
The Recycle Bin can be accessed from below the quick launch bar on the left of the screen. SharePoint offers a two-stage recycle bin so items that are deleted from the end user Recycle Bin may still be recoverable from the site collection Recycle Bin by a site collection administrator.
1st Stage Recycle Bin in SharePoint 2013
The recycle bin is accessed. On the SharePoint site, click Site Settings and selecting “Site Contents”. The link is then available from the “Site Contents” page.
Alternatively, this can be accessed by adding “/_layouts/15/Recyclebin.aspx” or “/_layouts/15/viewlsts.aspx” to the end of your sites root URL.
2nd Stage Recycle Bin in SharePoint 2013
The 2nd stage recycle bin is available to site collection administrators only and can be accessed from “Site Actions” > “Site Settings”. Alternatively, this can be accessed by adding “/_layouts/15/AdminRecyclebin.aspx” to the end of your sites root URL. Items
Go to the Site Collection recycle bin:
As a site collection administrator, I go to Site Actions (or the gear) Site Settings in order to get to the Site Collection recycle bin link. Click the Site Collection Recycle Bin link:
When I click on the recycle bin link in the Site Collection Administration section of the Site Settings page I am taken to the Site Collection recycle bin page. Go to the Site Collection recycle bin:
From here I can see all items that have been deleted and are sitting in the first stage or end-user recycle bins, as well as those that have been deleted from those locations and are now sitting in the second stage recycle bin. I click the link “Deleted from end user Recycle Bin.”
You can also access the Recycle Bin by accessing the below URL:
SharePoint recycle bin retention period
Now, we will see how we can change recycle bin settings in SharePoint 2013/2016/2010.
Recycle bin is a good feature of SharePoint. If you accidentally delete a document or other item from the SharePoint site, it is deleted from the site and moved to the site Recycle Bin, where it can be restored.
By default, an item will be stored in Recycle bin for 90 days and after that, it will delete permanently. But you can also change the recycle bin settings through Browser, Object model as well as PowerShell.
To change the setting, Open SharePoint central administration then go to Application Management -> Manage web applications and select the web application you want t to modify the settings.
Then click on General Settings. This will open the General Settings in a dialog box. Then navigate to the Recycle Bin section. There you can make the Recycle Bin Status to off, you can change the number of days also. Check the fig below:
Change recycle bin settings in SharePoint Object Model
You can also change the Recycle Bin settings through the SharePoint 2010 object model.
SPWebApplication webApplication =SPWebApplication.Lookup(newUri("http://WebApplicationURL"));
webApplication.RecycleBinEnabled = true;
webApplication.RecycleBinRetentionPeriod = 45;
Change recycle bin settings through PowerShell
Run below PowerShell command to change recycle bin settings in SharePoint.
$webApplication = get-spwebapplication "http://WebApplicationURL"
$webApplication.RecycleBinEnabled = $true
$webApplication.RecycleBinRetentionPeriod = 45
Remove the “Recycle Bin” link from SharePoint 2010 site
We can easily remove the “Recycle Bin” link from SharePoint 2010 site. We can hide the “Recycle Bin” link by using CSS property.
Then check out the master page and add the below lines of code after the </head> tag.
Then save and check in the page. Now publish the SharePoint master page. The link should not appear on the site.
You may like following SharePoint tutorials:
- SharePoint jslink Examples
- SharePoint Customization Examples
- How to upload files to SharePoint using PowerShell
- SharePoint web application (Everything you need to know)
- SharePoint ULS Logs
- SharePoint list title column remove
In this SharePoint tutorial, we learned SharePoint recycle bin, how to Change recycle bin settings in SharePoint? And how to remove the Remove “Recycle Bin” link from the SharePoint site.
After working for more than 15 years in Microsoft technologies like SharePoint, Office 365, and Power Platform (Power Apps, Power Automate, and Power BI), I thought will share my SharePoint expertise knowledge with the world. Our audiences are from the United States, Canada, the United Kingdom, Australia, New Zealand, etc. For my expertise knowledge and SharePoint tutorials, Microsoft has been awarded a Microsoft SharePoint MVP (9 times). I have also worked in companies like HP, TCS, KPIT, etc.