Clean Windows Azure Site

My ASP.NET MVC project has been ported to an Azure site with an additional DLL that is not valid. This leads to the correct operation of the project. If a new website is created, it works great. Cleaning up the project locally and redistributing does not fix the problem. Is there a way to do a "remote wipe?"

This project is deployed directly from Visual Studio with a publishing menu item.

+49
build-process asp.net-mvc deployment azure
Jul 04 '13 at 18:42 on
source share
6 answers

When you right-click and select "Publish to the Internet" on the left side, the settings tab will appear. Click here. Then expand the option in the File Publishing Options section and select the "Delete additional files" checkbox at the destination. (This will destroy what is already there)

enter image description here

Also can be found here: MSDN

+106
Jul 09 '13 at 15:52
source share
β€” -

Another trick to remove the entire Azure website, which can be done completely in the Azure portal, is:

1) Create a new empty slot for deployment to the Azure website. 2) Change it to the parent site of Azure.

This will give you an empty Azure website. If you want, you can delete the deployment slot later.

+14
07 Oct '14 at 12:44
source share

You can also delete files through Webmatrix (link in the footer on the Azure configuration portal)

+3
Mar 21 '15 at 15:49
source share
  • Download profile from Azure portal Download profile post

  • Import publish profile to VS enter image description here

  • Stop web application on Azure portal enter image description here Stopping the web application ensures that existing files, including DLLs and other resources, are deleted after the publication is successfully published.
    This step may not be necessary , but an existing web application may have some DLLs that cannot be removed directly during publication, returning error messages, such as:

Failed to complete network deployment task. (Cannot perform the operation ("Delete File") for the specified directory ...



4. Post using "Delete additional files at destination" enter image description here

  1. Launch the web application again after publishing the publication successfully.
+2
Sep 20 '16 at 6:24
source share

for Linux servers that you don’t get, CMD, then all you need to do is delete the deployment, and then create the deployment credentials for FTP and there you and the FTP client will clear the wwwroot folder yourself.

0
Oct 21 '17 at 20:56 on
source share

You can also use the console to delete any file. Kudu is a web-based tool that lets you see inside an Azure web application.

enter image description here

Two ways to access Kudu

0
Mar 14 '18 at 20:36
source share



All Articles