How to Delete a SharePoint Web Application?
SharePoint Web Applications are actually IIS Containers at the top level. Each web application we create from SharePoint creates a respective site in IIS and a content database in SQL Server. They can be deleted using the Central Administration site or PowerShell.
To delete a SharePoint 2016 Web Application, follow these steps:
- Open SharePoint 2016 Central Administration Site.
- Click on the “Manage web applications” link under “Application Management”.
- Select your target web application, and from the ribbon, click on the Delete button.
- Specify whether you would like to delete the content databases and IIS web sites.
- Confirm the Prompt once to delete a web application in SharePoint 2013 and your web application will be deleted momentarily.
This removes the specified web application from the SharePoint farm.
SharePoint delete web application zone:
To delete the SharePoint web application extension, From SharePoint Central Administration:
- Click on Administration Management >> Manage Web Applications
- Select the web application you wish to remove the extended zone from >> Click on the Delete button drop-down and choose “Remove SharePoint from IIS Web Site”.
- Select the IIS web site & zone to remove (make sure it’s not your “Default” zone!).
- Set the value for “Delete IIS web sites” to “Yes” and click OK to delete the web application zone.
To delete a SharePoint web application using PowerShell, use this script: Delete SharePoint web application using PowerShell
Hi Salaudeen
could you advice? is it safe to delete the web application first when there are some farm solutions that are deployed to this web application? or should I retract and remove these solutions first?
Thanks in advance for your advices
Swanl
Farm solutions are stored in the Config Database. When you create a new web app, they’ll be deployed automatically. Deleting a web application doesn’t have any impact on the Farm solutions – AFAIK.