App Service (Linux) deployment not removing deleted files

James H 0 Reputation points

I'm using Azure App Service (Linux) and the Deployment Centre (CI/CD) to deploy a PHP application.

On deployment, files deleted in the repository aren’t removed.  From the logs I can see that it clones into /repository, and then it copies the folder into the /wwroot folder.

The files are gone from the /repository folder – but not the /wwwroot folder.

Has anyone else run into this problem? I assume there is an app setting I need to set, I would appreciate any guidance that you can be provided.


Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
5,655 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 14,966 Reputation points Microsoft Employee

    @James H

    Thanks for reaching here! It seems like you are facing an issue with file deletion during deployment of your PHP application on Azure App Service (Linux).

    When you deploy your application using the Deployment Center (CI/CD), it clones your repository into the /repository folder and then copies the contents of this folder into the /wwwroot folder. However, it seems that the files deleted in the repository are not being removed from the /wwwroot folder during deployment.

    To resolve this issue, you can try the following steps:

    Let us know.

    0 comments No comments