Export (0) Print
Expand All

Recycle-bin-retention-period: Stsadm property (Windows SharePoint Services)

SharePoint 2007

Updated: November 8, 2007

Applies To: Windows SharePoint Services 3.0

 

Topic Last Modified: 2007-11-05

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>

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

The following table shows possible values.

 

Name Value

propertyname

Gets or sets the name of the property.

propertyvalue

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.

url

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft