{"name":"--keep-data","slug":"keep-data","family":"cli","title":"CLI flags","noun":"CLI flag","description":"Option of `claude plugin uninstall <plugin>`. Without it the uninstall deletes the plugin's persistent data directory (`~\/.claude\/plugins\/data\/{id}\/`) unless another install still uses it; with it the directory is kept, and with `--prune` the dependencies removed in the same run keep theirs too. The `--json` result reports the outcome as `keptData`.","description_source":"code","described_by":{"bundle":"2.1.286","author":"claude-opus-5-5"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":149,"mined_builds":149,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.78","anchor":"plugin-persistent-data-directories","heading":"Plugin Persistent Data Directories","line":null,"released_at":"2026-03-17 21:04:05","reason":"found in this entry's text"}],"entries_total":1,"docs":[{"source":"claude-code","path":"plugins\/cli-reference","title":"Plugin commands reference","documented":false},{"source":"claude-code","path":"plugins\/loading","title":"Plugin loading reference","documented":false},{"source":"claude-code","path":"plugins\/manifest-reference","title":"Plugin manifest reference","documented":false},{"source":"claude-code","path":"plugins\/security","title":"Plugin security and trust","documented":false},{"source":"claude-code","path":"vs-code","title":"Use Claude Code in VS Code","documented":false}],"docs_total":5,"gates":[],"related":[{"name":"--keep-temp","slug":"keep-temp","description":"Option of `claude plugin eval [target]`. It keeps each run's temporary sandbox directory (workspace and `trace.jsonl`) instead of removing it, printing `kept temp: <path>`; without it only runs that errored are kept, and none under `--json`. When a case scores below the threshold or a run errors, the text report suggests re-running with it."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/cli\/keep-data","family_url":"https:\/\/changelogs.core-directive.com\/reference\/cli.json"}