SPSiteCollection.Delete Method (String, Boolean, Boolean)
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub Delete ( _
strSiteUrl As String, _
bDeleteADAccounts As Boolean, _
bGradualDelete As Boolean _
)
'Usage
Dim instance As SPSiteCollection
Dim strSiteUrl As String
Dim bDeleteADAccounts As Boolean
Dim bGradualDelete As Boolean
instance.Delete(strSiteUrl, bDeleteADAccounts, _
bGradualDelete)
public void Delete(
string strSiteUrl,
bool bDeleteADAccounts,
bool bGradualDelete
)
Parameters
strSiteUrl
Type: System.StringA string that contains the server-relative URL for the site object (for example, Site_Name or sites/Site_Name).
bDeleteADAccounts
Type: System.Booleantrue if Active Directory Domain Services accounts should be deleted; otherwise, false.
- bGradualDelete
Type: System.Boolean