Share via


SPSite.Delete Method

Include Protected Members
Include Inherited Members

Deletes the site collection from the server.

Overload List

  Name Description
Public method Delete() Deletes the site collection from the server.
Public method Delete(Boolean) Deletes the site collection from the server and removes the site collection users from Active Directory Domain Services (ADDS) if bDeleteADAccounts is true.
Public method Delete(Boolean, Boolean) Deletes the site collection from the server, optionally removes the site collection users from Active Directory Domain Services (ADDS), and optionally uses a timer job to delete the site collection gradually.

Top

See Also

Reference

SPSite Class

SPSite Members

Microsoft.SharePoint Namespace