title: Azure App Service deploy task option to remove files in container upon deployment
body: <p>I am deploying a python web app using Web App on Linux service and using a DevOps release pipeline. The pipeline task that I am using is called <code>AzureRmWebAppDeployment@4</code>.</p>
  
  <p>Between deployments, the files in the container are not being removed and this is causing issues. </p>
  
  <p>I noticed if I am using a different type of app service (i.e. Web App on Windows) and if the deployment method is set to <code>Web Deploy</code> the option for <code>Remove additional files at destination</code> exists (see screenshot). However we are using a <code>Zip Deploy</code> method and prefer to be using a linux service. without that combination of app service and deployment method, this option is not available to me.</p>
  
  <p><a href="https://i.stack.imgur.com/9wmvr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/9wmvr.png" alt="enter image description here"></a></p>
  
  <p>Can anybody suggest an alternate method for deleting the container contents upon deployment? Also, any insight as to why this option is not available through the pipeline task when using Zip Deploy and Linux?</p>
  
  <p>Thanks in advance for any help provided.</p>