SPWebApplication.Unprovision method
Unprovisions the Web application and removes it from all local Internet Information Services (IIS) Web sites.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overrides Sub Unprovision
'Usage
Dim instance As SPWebApplication
instance.Unprovision()
public override void Unprovision()