Use grunt-contrib-clean instead of custom grunt task.