diff --git a/lib/grunt/file.js b/lib/grunt/file.js index a517fc0b..9619e808 100644 --- a/lib/grunt/file.js +++ b/lib/grunt/file.js @@ -371,7 +371,7 @@ file.delete = function(filepath, options) { try { // Actually delete. Or not. if (!nowrite) { - fs.rmSync(filepath); + fs.rmSync(filepath, { recursive: true, force: true }); } grunt.verbose.ok(); return true;