{
    "mode": "man",
    "parameter": "bundle-clean",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/bundle-clean/1/json",
    "generated": "2026-10-20T08:10:49Z",
    "synopsis": "bundle clean [--dry-run] [--force]",
    "sections": {
        "NAME": {
            "content": "bundle-clean - Cleans up unused gems in your bundler directory\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "bundle clean [--dry-run] [--force]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This  command  will remove all unused gems in your bundler directory. This is useful when you\nhave made many changes to your gem dependencies.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "--dry-run",
                    "content": "Print the changes, but do not clean the unused gems.\n",
                    "long": "--dry-run"
                },
                {
                    "name": "--force",
                    "content": "Forces cleaning up unused gems even if Bundler is configured to use globally installed\ngems. As a consequence, removes all system gems except for the ones in the current ap‐\nplication.\n\n\nAugust 2023                             BUNDLE-CLEAN(1)",
                    "long": "--force"
                }
            ]
        }
    },
    "summary": "bundle-clean - Cleans up unused gems in your bundler directory",
    "flags": [
        {
            "flag": "",
            "long": "--dry-run",
            "arg": null,
            "description": "Print the changes, but do not clean the unused gems."
        },
        {
            "flag": "",
            "long": "--force",
            "arg": null,
            "description": "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 ap‐ plication. August 2023 BUNDLE-CLEAN(1)"
        }
    ],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "not_found",
        "examples": []
    }
}