javascript
Delete files and folders Gulp
//USING PACKAGE - del
//INSTALLATION - npm install del
var gulp = require("gulp");
var del = require("del");
gulp.task("delete_task", function() {
return del(['app/build/**'], {force: true});
});
The code will delete all files and folders exists inside build folder. We are using del npm package to delete the files and folders.
NPM package installation
npm install del
Was this helpful?
Similar Posts