Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #5325 : added --keep flag to dvc exp remove documentation #5326

Merged
merged 5 commits into from
Dec 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions content/docs/command-reference/exp/remove.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,24 @@ $ dvc exp list myremote
master:
conic-ease
```

Conversely, to keep only specific experiments (and remove all others), give their names to `dvc exp remove` with the `--keep` flag :
shcheklein marked this conversation as resolved.
Show resolved Hide resolved

```cli
$ dvc exp list
master:
major-mela
conic-ease
lucid-lair

$ dvc exp remove --keep major-mela

$ dvc exp list
master:
major-mela

```
In this case, the experiments named `conic-ease` and `lucid-lair` are removed, and only `major-mela` is kept.
The `--keep` flag also works with `--num` (`-n`) and `--rev`, but *not* with `--queue`.


Loading