Recycle-bin-retention-period: Stsadm property (Windows SharePoint Services)
Updated: November 8, 2007
Applies To: Windows SharePoint Services 3.0
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
-propertyvalue <Numeric value indicating the number of days>
The syntax for the getproperty operation is:
stsadm -o getproperty
You can substitute -pn for -propertyname and -pv for -propertyvalue.
The following table shows possible values.
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