if you mean for the challenge you can go to the package.json and remove the dependencies from its section.
if you mean to remove its from a real development project use the steps:
go to the terminal and write $ rm -rf node_modules/
go to the package.json file and remove the dependences that you didn’t need or add its to the dev- dependencies where it will not include it the productions