title: How to delete the contents of on premise wwwroot folder during Azure devops deployment through pipelines?
body: <p>I am trying to deploy my .Net code on IIS website through Azure devops pipeline. The deployment happens successfully if the wwwroot folder is kept empty before deployment, but if the wwwroot folder contains files, in that case the files are not overridden by the deployment process. I want to either delete the contents of the wwwroot folder before deployment or find some setting that helps me override the existing contents. Several questions have been asked on various forums and most of them suggest people to use the setting 'Remove additional files at destination', I tried the same but it does not work for me. Please suggest what can be done in this case.</p>
  
  <p><a href="https://i.stack.imgur.com/jnKVt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jnKVt.png" alt="enter image description here"></a></p>