title: Ignoring .env in Azure Web App zip deploy
body: <p>I deploy my NodeJS web app through VS Code to my azure web app. That works fine, but it also takes the <code>.env</code> file, which is for local purposes only. I tried excluding it in <code>.vscode\settings.json</code> by adding it to <code>appService.zipIgnorePattern</code> like</p>
  <pre><code>{
      &quot;appService.zipIgnorePattern&quot;: [
          &quot;node_modules{,/**}&quot;,
          &quot;.vscode{,/**}&quot;,
          &quot;.env&quot;
      ]
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/yCzsN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yCzsN.png" alt="enter image description here" /></a></p>
  <p>But it is still visible after redeploy in the files section of my VS code azure plugin.</p>
  <p><strong>Update</strong>: I figured the file is indeed excluded, but the one from the original deployment is still there. Is there an option to remove files from previous deployments? This is a Linux hosted NodeJS Web App.</p>