'How to get Get Azure App Service folders in wwwroot
I have a Query to remove folders from Azure App service after specific number of Releases. I deploy using SFTP connection and there is an additional option to Remove Additional Files at Destination but this does not helps me. Since I want to remove specific files after deployments. It remove all the files.
I have tried Azure Rest api this too didn't help me out.
Need a better solution.
Solution 1:[1]
- You can View, Add, Edit, and Remove files in Azure Web App using
Kudu - Root URL of the Kudu service is https://mysite.scm.azurewebsites.net/
- To view Kudu service dashboard
Azure Portal => your Web App => Select
Advanced Tools=>Go=>Debug Console->CMD:
- You can get to your application home directory by clicking the
sitefolder =>wwwrootfolder - To remove a files/folder click the
minusicon
- Using FileMage - Folder Permissions also you can delete files and folders.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | HarshithaVeeramalla-MT |


