I am using the del package to delete a folder:
gulp.task('clean', function(){ return del('dist/**/*', {force:true}); });
But if there are many subdirectories in the dist folder, and I want to delete the dist folder and all its files, is there an easy way to do this?
Ps: I do not want to do this: dist/**/**/**/**/**/**/...
when there are so many subdirectories.
source share