IIS: how to undeploy/delete/remove a webapp from command line?

前端 未结 4 1725
暗喜
暗喜 2021-02-05 11:22

Suppose there\'s a webapp deployed on local IIS server. When I need to remove/undeploy it, I can go to IIS Manager, right-click on the app, and then select \"Delete application

4条回答
  •  轮回少年
    2021-02-05 12:09

    If you just want to remove the application from the Web Site in IIS without physically deleting the files (like msdeploy does) or if you don't have the WebDeploy-extension installed, you can use the following command:

    C:\Windows\System32\inetsrv\appcmd.exe delete app "Default Web Site/MyAppName"
    

提交回复
热议问题