SPWebApplication.AutomaticallyDeleteUnusedSiteCollections property
Gets or sets a value specifying whether unused site collections can be automatically deleted.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Property AutomaticallyDeleteUnusedSiteCollections As Boolean
Get
Set
'Usage
Dim instance As SPWebApplication
Dim value As Boolean
value = instance.AutomaticallyDeleteUnusedSiteCollections
instance.AutomaticallyDeleteUnusedSiteCollections = value
public bool AutomaticallyDeleteUnusedSiteCollections { get; set; }
Property value
Type: System.Boolean
true if unused site collections can be automatically deleted; otherwise, false. The default value is false.