Skip to content

destroy target...

Danger

The destroy command permanently removes files both from your home directory and chezmoi's source directory.

Only run chezmoi destroy if you have a separate backup of your home directory and your source directory.

If you want chezmoi to stop managing the file use forget instead.

If you want to remove all traces of chezmoi from your system use purge instead.

Remove target from the source state, the destination directory, and the state.

Common flags

--force

Destroy without prompting.

-r, --recursive

Recurse into subdirectories.