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

cmd ref: remove: mention removing of dvc.yaml and dvc.lock #1565

Merged
merged 1 commit into from
Jul 13, 2020
Merged
Changes from all commits
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
7 changes: 7 additions & 0 deletions content/docs/command-reference/remove.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ files or directories that are tracked by DVC. It takes one or more stage names
[`.dvc` files](/doc/user-guide/dvc-files-and-directories#dvc-files) as target,
removes it, and optionally removes all of its outputs (`outs` field).

If there are no stages left in
[dvc.yaml](/doc/user-guide/dvc-files-and-directories#dvcyaml-file) after stage
removal then both
[dvc.yaml](/doc/user-guide/dvc-files-and-directories#dvcyaml-file) and
[dvc.lock](/doc/user-guide/dvc-files-and-directories#dvclock-file) are removed
from the workspace.

Note that in the case of `.dvc` file `targets`, the tracked files or directories
(`outs` in the `.dvc` file) are removed by default by this command.

Expand Down