bundle clean [--dry-run] [--force]
This command will remove all unused gems in your bundler directory. This is useful when you have made many changes to your gem dependencies.
--dry-run: Print the changes, but do not clean the unused gems.--force: Force a clean even if--pathis not set.