SPWebApplication.Unprovision method (Boolean)

Unprovisions the Web application and optionally removes the application from all local Internet Information Services (IIS) Web sites.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public void Unprovision(
	bool deleteWebSites
)

Parameters

deleteWebSites
Type: System.Boolean

true to remove the Web application from all local IIS Web sites; otherwise, false.

Show: