Delete files / folders using globs with del for Laravel Elixir. This package is the same as laravel-elixir-delete, but it works with Elixir version 5 and 6.
Install this package over npm.
npm install laravel-elixir-remove --save-dev
Require it in your gulpfile.js
and use it.
var elixir = require('laravel-elixir');
require('laravel-elixir-remove');
elixir(function(mix) {
mix.remove('src/file.js');
// or for multiple files:
mix.remove(['src/file.js', 'other/file.js']);
});