Skip to content

dvc remove: inconsistency between implementation and cmd ref #4094

@nik123

Description

@nik123
  1. dvc remove -h output is totally different from cmd ref. dvc remove -h: "Remove stage entry and unprotect outputs". cmd ref: "Remove DVC-tracked files or directories from the workspace."
  2. Removing outs in cmd ref is described as default behavior (see --outs desc). The implementation behaves in the opposite way.
  3. dvc remove cleans gitignore entries. This doesn't mentioned neither in code (see remove: clean gitignore content #4074), neither in docs.

Information about your setup

Output of dvc version:

DVC version: 1.0.1
Python version: 3.6.8
Platform: Linux-5.3.0-59-generic-x86_64-with-Ubuntu-18.04-bionic
Binary: False
Package: None
Supported remotes: azure, gdrive, gs, hdfs, http, https, s3, ssh, oss
Cache: reflink - not supported, hardlink - supported, symlink - supported
Filesystem type (cache directory): ('ext4', '/dev/sdb')
Repo: dvc, git

OS: Ubuntu 18.04

Python 3.6.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNeeds to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions