Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Deletes the specified SPSite object from the collection with the option of deleting Active Directory Domain Services accounts that were created for this site collection.
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 _
)
'Usage
Dim instance As SPSiteCollection
Dim strSiteUrl As String
Dim bDeleteADAccounts As Boolean
instance.Delete(strSiteUrl, bDeleteADAccounts)
public void Delete(
string strSiteUrl,
bool bDeleteADAccounts
)
Parameters
strSiteUrl
Type: System.StringA string that contains the URL of the site.
bDeleteADAccounts
Type: System.Booleantrue if Active Directory Domain Services accounts should be deleted; otherwise, false.