LinuxCommandLibrary

dvc-destroy

remove DVC initialization from project

TLDR

Remove DVC from project

$ dvc destroy
copy
Force destroy without confirmation
$ dvc destroy -f
copy

SYNOPSIS

dvc destroy [options]

DESCRIPTION

dvc destroy completely removes DVC initialization from a project, effectively uninstalling DVC from the repository. It deletes the .dvc directory (containing cache, configuration, and internal state) along with all .dvc metadata files throughout the project.
Importantly, the actual data files tracked by DVC are preserved. Only the DVC tracking infrastructure is removed. This means your large datasets and model files remain in the workspace, they simply lose their version control status.
This command is irreversible and should be used with caution. Before destroying, ensure you've pushed important data to remote storage if you might need to restore DVC tracking later. After destroying, .gitignore entries added by DVC remain and may need manual cleanup.

PARAMETERS

-f, --force

Force destroy without confirmation.

CAVEATS

This operation is irreversible. Make sure to backup any data or push to remote storage before destroying.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community