Dead-site-auto-delete: Stsadm property (Office SharePoint Server)

Stsadm

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.

Description

Turns on or off the setting to delete the site collection.

This property is equivalent to the Automatically delete the site collection if use is not confirmed user interface setting that is located on the Site Use Confirmation and Deletion page of the SharePoint Central Administration Web site.

Syntax

stsadm -o setproperty

   -propertyname dead-site-auto-delete

   -propertyvalue {Yes | No}

   [-url] <http://server_name>

The syntax for the getproperty operation is:

stsadm -o getproperty

   propertyname dead-site-auto-delete

   [-url] <http://server_name>

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

Property values

The following table shows possible values.

Name Value

propertyname

Gets or sets the name of the property.

propertyvalue

  • Yes: Enables the site collection to be automatically deleted.

No: Disables the site collection to be automatically deleted. This is the default setting.

url

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

Examples

To turn on the setting for the site collection to be deleted, use the following syntax:

stsadm -o setproperty -pn dead-site-auto-delete -pv Yes