Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable '--delete-all' feature plz #176

Open
mokone91 opened this issue Apr 23, 2024 · 2 comments
Open

Enable '--delete-all' feature plz #176

mokone91 opened this issue Apr 23, 2024 · 2 comments

Comments

@mokone91
Copy link

Hi!
I have a repos with 50+ packages it each, this feature will be very useful for me.
Please enable it

Thanks!
Eldar.

@zaldih
Copy link
Member

zaldih commented Apr 23, 2024

Thank you for opening the issue!

I think it will be a good idea. In fact I've been thinking about it for a while.

At first because of some (very strange and infrequent) bugs it was decided to disable it for security but not to delete it from the code in case someone really needed this feauture, that could clone the project and enable it by modifying the code.

Now they have been fixed a long time ago so I think it would be a good idea to enable it again :) . I'll work on it soon unless someone wants to go ahead and open a PR.

Important

When you start npkill with --delete-all, the user should get a warning that you are sure you want to run the command and that any node_module found in the path (print path) will be deleted. Require confirmation before proceeding.

@mokone91 mokone91 changed the title Enable '--delete-all' feature lz Enable '--delete-all' feature plz Apr 25, 2024
@LordZardeck
Copy link

Any updates on this? This would be a huge efficiency upgrade for our team. We constantly have the need to nuke our node modules, and with our mono repo, we have a number of node_modules directories. This makes the experience of running npkill, selecting all the the directories, waiting for it to finish, then closing the app annoying.

I would also ask that there be an option to auto-confirm so we can just run it and be done. I get the desire to protect the user, but node_modules should be volitile anyway and easy re-installed so even if it deleted it somewhere that wasn't intentional it doesn't actually harm us. Something like npkill -D -y would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants