Skip to content

Commit

Permalink
Added examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rmic authored Nov 30, 2024
1 parent 9cdeaaf commit b58fc7c
Showing 1 changed file with 21 additions and 0 deletions.
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 :

```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`.


0 comments on commit b58fc7c

Please sign in to comment.