treeverse / treeverse/dvc

dvc remove --force

Open
#9,789 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A: data-management feature request p3-nice-to-have
Dominant language
Python
Stars
15.9k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

At the moment (v2.58.2), dvc remove {target.dvc} first unprotects {target.dvc}, at least when applied to .dvc files.

I'm sure that this is a good reason for this, but this can be painfully slow for large files.

I'd like to request a --force option that just does all the other dvc remove stuff, but without unprotecting the targets first. All the normal caveats around use --force options would apply, and it might be worth double-checking with the user before carrying it out, as is done with dvc commit, for example.

This would be particularly useful for large imports, where we are not afraid to delete the data from the workspace because we are confident that we can always import it again from the source data registry.

An alternative name for this kind of option might be --no-unprotect or similar.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the dvc remove command and compare its behavior with the confirmation flow used by dvc commit. Define how a --force or --no-unprotect option should skip unprotecting targets while retaining the other removal behavior, including any confirmation; done when that behavior is covered by the relevant command tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.