Export (0) Print
Expand All

Recycle-bin-cleanup-enabled: Stsadm property (Windows SharePoint Services)

SharePoint 2007

Updated: November 8, 2007

Applies To: Windows SharePoint Services 3.0

 

Topic Last Modified: 2007-11-06

Specifies whether a cleanup to the recycle bin occurs.

A value of true sets the "After" option and a value of false sets the "Never" option when the recycle-bin-retention property is used and sets the "Off" option when the second-stage-recycle-bin-quota property is used. This is an independent setting from the Recycle-bin-retention-period and Second-stage-recycle-bin-quota properties. You can have a number of days specified for the retention period and the recycle-bin-cleanup-enabled property can be set to "Never". If this scenario exists, and the number of days elapsed, a cleanup to the Recycle Bin would not occur as the cleanup-enabled property is set to "Never".

You also can have the quota amount specified for second stage Recycle Bin and the recycle-bin-cleanup-enabled property can be set to "Off". If this scenario exists, the functionality to the second stage Recycle Bin is turned off and no items in the second stage Recycle Bin would be deleted.

This property is equivalent to 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-cleanup-enabled

   -propertyvalue {On | Off}

   [-url] <URL>

The syntax for the getproperty operation is:

stsadm -o getproperty

   propertyname recycle-bin-cleanup-enabled

   [-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

On: Enables the cleanup of the Recycle Bins. Sets the After option. This is the default.

Off: Disables the cleanup of the Recycle Bins. Sets the Never option.

url

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

To disable the Recycle Bin cleanup, use the following syntax:

stsadm -o setproperty -pn recycle-bin-cleanup-enabled -pv off

To view the current setting of the recycle-bin-cleanup-enabled property, use the following syntax:

stsadm -o getproperty -pn recycle-bin-cleanup-enabled

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