Chrome Extension

Delete files and folders Gulp

//INSTALLATION - npm install del
var gulp = require("gulp");
var del = require("del");

gulp.task("delete_task", function() {
    return del(['app/build/**'], {force: true});
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool

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?
Join Devsheet Ask a Question