Gulp: Delete files and folders
npm install gulp-contrib-clean --save-dev
var clean = require('gulp-contrib-clean');
gulp.task('clean', function() {
gulp.src('src/js')
.pipe(clean());
PS: As of now you can't pipe it with other plugins or use regular expressions
This package is in process of being created. Please be patient. Feel free to contribute if you like.
- List all files and folders deleted if option verbose is passed
- Make the plugin work with pattern matching
- Support multiple sources
- Support negation
- Display what was not found or could not be deleted - Error handling