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)
Available in Sandboxed Solutions: No
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.