-
Notifications
You must be signed in to change notification settings - Fork 258
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
Implement command to remove cached downloads #330
Comments
I think this needs to be re-prioritized. I've had volta on my machine for almost a year now. And have nearly 10GB of storage dedicated to the inventory/ and image/node/ folders. Spanning almost every version of node since 10. Am I safe to just delete old images? Will it break anything? |
It is safe to delete old images, because if you’re in a project where you need one of them, Volta will just re-download it for you. (This size usage is the big reason I’d like the feature as well. My personal laptop is woefully undersized storage-wise, so I end up just throwing away all my images every so often to keep clutter down.) |
would love this! while it is super easy just to |
It'd be great if this command would also run automatically, e.g., each month when some other Volta un/install command is executed so that you wouldn't have to worry about the manual chore of such a cleanup |
I've made a small utility to remove unused Node versions from Volta: |
but why is this not yet among Volta commands ... |
If we can remove cached Node versions by hand or with a Python script, it can't see a reason why Volta can't provide it internally. |
https://gist.github.com/chintan9/0375fba3477374616c007fa2866227a0 use this script in nodejs 16 or higher required |
A couple quick notes here, in case anyone wants to design and implement a
In the meantime, the scripts folks have written and shared do work reasonably well, and are also straightforward to implement as a scheduled job if/as people prefer! |
I'd like to remove unused installation as it get's piling up. Seems this is a must have feature |
I had a problem with the wrong architecture of node due to volta. I fixed it by deleting I don't know what I think There's no point adding new complicated commands cuz it's all arbitrary in the end anyway. |
NOTE: this issue predates this project's rename to Volta.
This command is basically the inverse of
notion fetch <node/npm/yarn/package>
- it should remove the cached downloads for the specified tool from the inventory directory.There was a discussion on discord, and several options for the syntax of this command were proposed:
notion delete
notion prune
notion cleanup
notion clear-cache
Whatever is chosen, there should be a corresponding flag for
notion uninstall
to also remove the cached files.The text was updated successfully, but these errors were encountered: