How to remove SPWebApplication using powershell script in SharePoint 2013

Advertisement

         Remove-SPWebApplication cmdlet deletes the Web application specified by the Identity and Zone parameters. If no zone is provided, the entire Web application and all zones are removed.

Remove particular zone:


    Get-SPWebApplication "http://sitename"|Remove-SPWebApplication -Zone "Intranet" -Confirm

    Identity: http://sitename. 

             It removes the Internet zone Web application extension on the Web application at http://sitename. This command does not remove the content databases or the IIS Web site.

Remove Perticular web application content databases and IIS website :


    Remove-SPWebApplication http://sitename -Confirm -DeleteIISSite -RemoveContentDatabases

         It removes the Web application, all content databases, and the IIS Web site at http://sitename
Advertisements
SHARE

Lakshmi Tulasi Jasti

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

2 comments:

  1. It's very difficult to stumble upon the right essay service for your college needs. That's why reddit lovers prefer
    https://www.reddit.com/r/HomeworkCentral/comments/f1s0yq/how_to_choose_the_right_essay_writing_service_on/

    ReplyDelete
  2. I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. Safe Way of Using an Essay Writing Service

    ReplyDelete