After about a dozen deployments, the wwwroot
directory is filled with a lot of files due to active development and deployments. We are using VSTS\'s Azure A
For Web Deploy use answer by @Brendan Green.
For Zip Deploy, from Kudu documentation:
When a new build is deployed with zipdeploy, files and directories that were created by the previous deployment but are no longer present in the build will be deleted. Any other files and directories found in the site that aren't being overwritten by the deployment, such as those placed there via FTP or created by your app during runtime, will be preserved.
https://github.com/projectkudu/kudu/wiki/Deploying-from-a-zip-file-or-url
I think it's good enough for most cases.