Removing a package from a Conda environment uses the conda remove command. Conda handles dependency resolution automatically — if other packages depend on the one you are removing, Conda will warn you or remove those dependencies as well.

Remove a Single Package

conda activate myenv
conda remove package_name

Remove Multiple Packages at Once

conda remove package1 package2 package3

Remove from a Specific Environment Without Activating

conda remove -n environment_name package_name

Verify the Package Was Removed

conda list | grep package_name

If the command returns no output, the package was successfully removed. Update your environment.yml file after removing packages to keep your environment specification in sync.

Frequently Asked Questions

Will removing a package break my environment?

Conda checks dependencies before removing. If other installed packages depend on the one you are removing, Conda will list those dependent packages and ask for confirmation before proceeding. Review the list carefully. If core packages would be removed as dependencies, consider whether uninstalling the target package is the right approach.