dvc remove --force
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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