I use the del
package to delete a folder:
gulp.task('clean', function(){
return del('dist/**/*', {force:true});
});
...But is there any easy way to delete the dist
folder and all of its contents if it contains many subdirectories [recursively]?
Ps: I don't want to do it this way: dist/**/**/**/**/**/**/...
, when there are many subdirectories.