BUNDLE-CLEAN(1) General Commands Manual BUNDLE-CLEAN(1)

# [NAME](#NAME)

**bundle-clean** - Cleans up unused gems in your bundler directory

# [SYNOPSIS](#SYNOPSIS)

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

# [DESCRIPTION](#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](#OPTIONS)

[**--dry-run**](#dry)

Print the changes, but do not clean the unused gems.

[**--force**](#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.

April 2026

---

Document: bundle-clean(1) from ruby4.0-bundler 4.0.22-r0 (Chainguard OS)
Source: https://github.com/rubygems/rubygems
