Guides

Getting Started

Guides

Dependency Management

Gem Development

Publishing & Security

Integrations

Hosting & Sources

Extending

Troubleshooting

Concepts

Reference

Appendix

bundle clean

Cleans up unused gems in your bundler directory

This reference was automatically generated from Bundler version 4.0.17.

bundle clean [--dry-run] [--force]

Description

This command will remove all unused gems in your bundler directory. This is useful when you have made many changes to your gem dependencies.

Options

--dry-run
Print the changes, but do not clean the unused gems.
--force
Forces cleaning up unused gems even if Bundler is configured to use globally installed gems. As a consequence, removes all system gems except for the ones in the current application.