As a user, I would like to be able to delete certain files and directories from my azure app service web app before deploying my application.
I’ve tried adding a custom script, that runs on the deployment target, but it was unable to find the C:\home\site\wwwroot directory.
I keep getting
ObjectNotFound: Cannot find path ‘C:\home\site’ because it does not exist.
I’ve tried the azure script, normal script, and the pre-deployment custom script on the
Deploy an Azure Web App step but I’m getting the same error.
What’s the best way to do this?
Is this answer still the only way we can delete files/folders from an azure app service?