You can delete the Grunt task by running the following command:
npm uninstall grunt-task-name
... where grunt-task-name is the name of the task you want to delete. The --save flag tells npm to update the package.json file and also remove the corresponding package from the node_modules directory. (nb. if the task is specified in devDependencies - as it could be - you might need to use the --save-dev flag).
For Bower, the process is the same, only with bower uninstall instead of npm uninstall (as mentioned in Michael Okienko answer )
Nick f
source share