Removing Packages from Your Environment
Sometimes you need to clean up your environment by removing packages you no longer need. Grove makes this simple while keeping your environment clean and consistent.
Removing packages
Section titled “Removing packages”To remove a package from your environment:
kanuka grove remove nodejskanuka grove remove python3kanuka grove remove dockerThat’s it! Kānuka will:
- Remove the package from your
devenv.nixfile. - Update
kanuka.tomlto track the removal. - Clean up any dependencies that are no longer needed.
Removing multiple packages
Section titled “Removing multiple packages”You can remove several packages at once:
kanuka grove remove nodejs python3 gitRemoving language environments
Section titled “Removing language environments”Language environments can be removed just like packages:
kanuka grove remove typescriptkanuka grove remove rustkanuka grove remove goWhat happens when you remove packages
Section titled “What happens when you remove packages”When you run kanuka grove remove, Grove:
- Updates your
devenv.nixconfiguration to remove the package. - Updates
kanuka.tomlto track what was removed. - The next time you enter your environment, the package won’t be available.
- Dependencies that are no longer needed by any package are automatically cleaned up.
Checking what’s installed
Section titled “Checking what’s installed”Before removing packages, you might want to see what’s currently installed:
kanuka grove listThis shows you all the packages and languages in your current environment.
Next steps
Section titled “Next steps”To learn more about kanuka grove remove, see the package management concepts and the command reference.
Or, continue reading to learn how to search for new packages to add.