Recycle-bin-enabled: 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
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>
Note
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