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 and content" - et voila. But, I need to do the same from the command line - how? It can be assumed that the name of the application is known.
Maybe this can be done via MSDeploy somehow?
Click Start > Control Panel > Administrative Tools > Internet Information Services. In the Connections pane, expand the machine's name, then expand Sites, then Default Web Site (or your web site, if renamed). Right-click acuxbis and select Remove from the popup menu.
1. In the View List under Server Configuration, click Internet Information Services. 2. In the Application Pools explorer, right-click the application pool and click Delete.
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"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With