Recycle Bin Retention Period for Individual Site Collection
Can anyone tell me is there a way to change the retention period for the recycle bin of a specific site collection? I don't want to change the entire web application, just one site collection. Is it possible to do this with the following stsadm command?
stsadm -o setproperty
-propertyname recycle-bin-retention-period
-propertyvalue <Numeric value indicating the number of days>
[-url] <URL>
April 12th, 2010 5:35pm
The above stsadm command does not work at site collection level and it is for web application level.--Cheers
Free Windows Admin Tool Kit Click here and download it now
April 12th, 2010 5:41pm
The above stsadm command does not work at site collection level and it is for web application level.
--Cheers
So there's no way to do it at the site collection level? Thanks.
April 12th, 2010 5:43pm
Hi,
You cannot do this via stsadm; and whilst the following comes the technet article concerning the use of the command:
A site collection is defined as a set of Web sites on a Web application that has the same owner and share administration settings. Each site collection contains a top-level Web site and can contain one or more subsites.
http://technet.microsoft.com/en-us/library/cc263509.aspx
Its a little misleading. The article on the below link concerning recyclebin retention setting using stsadm states the command is against the URL of the web application:
http://technet.microsoft.com/en-us/library/cc262418.aspx
So this means you will have to carry out some Object model coding, or do this via the CA.
If you want to change the retention period for the recycle bin for a site collection, you:
Go to Central Administration
Go to Application Management
In the SharePoint Web Application Management section, click Web Application General Settings
Select the Site Collection you want to make the change
Go to the last section Recycle Bin, and make the changes there
Hope this helps
Geoff
Free Windows Admin Tool Kit Click here and download it now
April 12th, 2010 6:28pm
You cannot do this via stsadm;
Geoff, thanks for the tip but when I go to central admin and web application general settings it gives me the option to select the SharePoint web application, but not an individual site collection.
April 12th, 2010 8:10pm
Hi,
Apologies, I meant only the top level site collection relevant to the web application can be set in this way. It is not possible to do this using CA either.
Geoff
Free Windows Admin Tool Kit Click here and download it now
April 12th, 2010 8:55pm
Thanks for the answer!
April 12th, 2010 11:00pm