SPList.Delete SPList.Delete SPList.Delete SPList.Delete Method

Definition

public:
 void Delete();
[Microsoft.SharePoint.Client.ClientCallableExceptionConstraint(Condition="This list cannot be deleted because it has related lists with relationship behavior constraints.", ErrorCode=-2130575157, ErrorType=typeof(Microsoft.SharePoint.SPException), FixedId="a")]
[Microsoft.SharePoint.Client.ClientCallableExceptionConstraint(Condition="The list can not be deleted.", ErrorCode=-2147016498, ErrorType=typeof(Microsoft.SharePoint.SPException), FixedId="listnotdeletable")]
[Microsoft.SharePoint.Client.ClientCallableExceptionConstraint(Condition="The list can not be deleted.", ErrorCode=-2130575299, ErrorType=typeof(Microsoft.SharePoint.SPException), FixedId="listuniquenotdeletable")]
[Microsoft.SharePoint.Client.ClientCallableMethod(Name="DeleteObject", RemoveThisObjectFromParentCollection=true)]
public void Delete ();
member this.Delete : unit -> unit
Public Sub Delete ()

Applies to