SPWebApplication.Delete method
Removes the Web application and some of the resources that it owns.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overrides Sub Delete
'Usage
Dim instance As SPWebApplication
instance.Delete()
public override void Delete()