Search code examples
azureazure-web-app-servicekuduazure-webapps

How delete all the files that are in Folder in Azure app service using Kudu console


I have a Temp Folder in Azure app service, I need to delete files that are inside it, I use Kudu console to login, the Folder in c:\Home\Mysite\wwwroot\Temp

How and with what command I can delete all the files that are in this folder?


Solution

  • We can use below command to delete all files from respective folder through KUDU console using cmd.

    Remove-Item –path c:\Home\Mysite\wwwroot\Temp\* –recurse