How to uninstall all node modules and all folders i dont need anymore in my project i want to complete rework my site with as less as possible memory.
As my knowledge, you can delete node modules by name
pnpm un <name>, and delete folders by hand for each.
Yes I know that, but can I automatically delete unused modules?
Sorry, but I don’t know about this. Just know, in VSC, unused variables can be deleted by you, which VSC finds 'em. For example:
const a = 1, b = 3, c = 4, d = b + c console.log (d)
In this code,
d variables will be brighter yellow, but
a is unused, because of this, it will be darker (less saturated) yellow.