How to delete compiled JS files from previous typescript(.ts) files? : <p>I am following <a href="https://angular.io/docs/ts/latest/quickstart.html" rel="noreferrer">Angular 2 quick start</a> tutorial. Following is my folder structure - </p>

<pre><code>├── gulpfile.js
├── index.html
├── js
|   ├── app.component.js
|   └── boot.js
├── source
|   ├── app.component.ts
|   └── boot.ts
├── node_modules
    ├── module 1
    └── module 2
</code></pre>

<p>My typescript files are in <code>source/</code> directory. I'm compiling it to <code>js/</code> directory. I'm using gulp-typescript.</p>

<p>The problem is when I, for example, rename the file <code>boot.ts</code> to <code>bootstrap.ts</code> and compile again, corresponding <code>bootstrap.js</code> file is created but the old <code>boot.js</code> file still remains in the js/ directory.</p>

<p>Now the folder structure looks like following-</p>

<pre><code>├── gulpfile.js
├── index.html
├── js
|   ├── app.component.js
|   └── bootstrap.js
|   └── boot.js
├── source
|   ├── app.component.ts
|   └── bootstrap.ts
├── node_modules
    ├── module 1
    └── module 2
</code></pre>

<p>I want to delete this <code>boot.js</code> autonomically via gulp task. How to achieve this?</p>
