Edit on GitHub

destroy

Remove all DVC files and internals from a DVC project.

Synopsis

usage: dvc destroy [-h] [-q | -v] [-f]

Description

dvc destroy removes dvc.yaml, .dvc files, and the internal .dvc/ directory from the project.

Note that the cache directory will be removed as well. If you have setup symlinks (from cache to workspace) in your project, DVC will replace them with the latest versions of the actual files and directories first, so that your data is intact after destruction.

Refer to Project Structure for more details on the directories and files deleted by this command.

Options

  • -f, --force - do not prompt when destroying this project.

  • -h, --help - prints the usage/help message, and exit.

  • -q, --quiet - do not write anything to standard output. Exit with 0 if no problems arise, otherwise 1.

  • -v, --verbose - displays detailed tracing information.

Examples

$ dvc init
$ echo foo > foo
$ dvc add foo
$ ls -a

.dvc .git code.py foo foo.dvc

$ dvc destroy
This will destroy all information about your pipelines, all data files...
Are you sure you want to continue?
yes

$ ls -a

.git code.py foo
Content

๐Ÿ› Found an issue? Let us know! Or fix it:

Edit on GitHub

โ“ Have a question? Join our chat, we will help you:

Discord Chat