Recycle-bin-retention-period: Stsadm properties (Office SharePoint Server)

Applies To: Office SharePoint Server 2007

This Office product will reach end of support on October 10, 2017. To stay supported, you will need to upgrade. For more information, see , Resources to help you upgrade your Office 2007 servers and clients.


Topic Last Modified: 2015-03-09


Specifies the retention period, in days, of deleted items in the Recycle Bin. Once the retention period has expired, the items in the recycle bin are permanently deleted.

This property is equivalent to number of days located in the Delete items in the Recycle Bin user interface setting that is located on the Web Application General Settings page of the SharePoint Central Administration Web site.


The syntax for the setproperty operation is:

stsadm -o setproperty

-propertyname recycle-bin-retention-period

-propertyvalue <Numeric value indicating the number of days>

**\[-url\]** *\<URL\>*

The syntax for the getproperty operation is:

stsadm -o getproperty

propertyname recycle-bin-retention-period

**\[-url\]** *\<URL\>*


You can substitute -pn for -propertyname and -pv for -propertyvalue.


The following table shows possible values.

Name Value


Gets or sets the name of the property.


The number of days that items will be deleted from the recycle bin. The default value is 30 days.

This value works in conjunction with the recycle-bin-retention-period property.


Typically, a path to the URL of the Web application, in the form http://server_name.


To delete items in the Recycle Bin after 45 days, use the following syntax:

stsadm -o setproperty -pn recycle-bin-retention-period -pv 45

To view the current setting of the recycle-bin-retention-period property, use the following syntax:

stsadm -o getproperty -pn recycle-bin-retention-period

See Also