Export (0) Print
Expand All

Recycle-bin-enabled: Stsadm properties (Office SharePoint Server)

SharePoint 2007

Updated: November 8, 2007

Applies To: Office SharePoint Server 2007

Updated: 2007-11-08

Description

Turns the Recycle Bin on or off. If the Recycle Bin is turned off, the entire contents of all Recycle Bins in the Web application are emptied.

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

Syntax

The syntax for the setproperty operation is:

stsadm -o setproperty

   -propertyname recycle-bin-enabled

   -propertyvalue {On | Off}

   [-url] <URL>

The syntax for the getproperty operation is:

stsadm -o getproperty

   propertyname recycle-bin-enabled

   [-url] <URL>

NoteNote:

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

Values

The following table shows possible values.

Name Value

propertyname

Gets or sets the name of the property.

propertyvalue

On: Turns on all Recycle Bins, that is, the primary Recycle Bin and second stage recycle bin. Deleted items are sent to the Recycle Bins.

Off: Turns off all Recycle Bins. The following message is displayed when you turn off this setting:

"Turning off the Recycle Bins deletes any items stored there for the entire Web application. Future deletions will not be sent to the Recycle Bins. Are you sure you want to turn off the Recycle Bins?"

url

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

Examples

To turn off the Recycle Bins, use the following syntax:

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

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

stsadm -o getproperty -pn recycle-bin-enabled

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