SPAlternateUrlCollection.Delete method
Deletes the entire collection of alternate URLs and clears local caches.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overrides Sub Delete
'Usage
Dim instance As SPAlternateUrlCollection
instance.Delete()
public override void Delete()
Remarks
This override of the Delete method is different from the other Delete method overrides and the Clear method. This method removes the SPAlternateUrlCollection from the SPAlternateUrlCollectionManager.
You can call this Delete method only when no other resources in the farm have a dependency on this collection. If this collection is associated with a Web application, then this collection is deleted when you delete the Web application.
See also
Reference
SPAlternateUrlCollection class