Remove Windows SharePoint Services from a Web application (Windows SharePoint Services)
Applies To: Windows SharePoint Services 3.0
Topic Last Modified: 2008-01-08
Before you perform these procedures, confirm that:
- You have read the topic Create, extend, or delete a Web application (Windows SharePoint Services).
Removing Windows SharePoint Services from a Web application
Use the following procedures to remove Windows SharePoint Services 3.0 from a Web application.
Important
At the minimum, you must be a member of the Farm Administrators SharePoint group to complete this procedure using the user interface.
Remove Windows SharePoint Services from a Web application by using Central Administration
On the top link bar of the Central Administration site, click Application Management.
On the Application Management page, in the SharePoint Web Application Management section, click Remove SharePoint from IIS Web Site.
On the Remove SharePoint From IIS Web Site page, verify that the Web application you want is selected. If it is not, on the Web Application menu, click Change Web Application. Next, on the Select Web Application page, click the Web application from which you want to remove Windows SharePoint Services 3.0.
After the correct Web application is selected, in the Deletion Options section, in the Select IIS Web site and zone to remove list, click the name of the Web site and zone to be removed.
Under Delete IIS Web sites, select Yes to delete the Web application and the associated IIS Web site. Otherwise, select No to remove only the association of the IIS Web site with the Web application.
Click OK.
Important
The account that you use to run the Stsadm command-line tool must be a member of the Administrators group on the local computer and must be a member of the following fixed server roles in SQL Server: dbcreator, sysadmin.
Remove Windows SharePoint Services from a Web application by using the Stsadm command-line tool
On the drive where SharePoint Products and Technologies is installed, open a command-line window and type the following command:
cd %CommonProgramFiles%\Microsoft Shared\web server extensions\12\bin
Type the following command:
stsadm.exe -o unextendvs -url <URL> [-deletecontent] [-deleteiissites]
where URL is the URL of the Web application.
To also delete the content database associated with the Web application, use deletecontent.
To delete all IIS Web sites associated with the Web application, use deleteiissites.
For more information, see Unextendvs.