Skip to content

vaultfold vault remove

Unregister a vault and delete the local copy vaultfold made of it.
vault remove deletes the registry entry and only the local state vaultfold created for the vault:
its clone or mirror directory under the data directory, the private ref of a branch-mode vault,
the copied token file and queue state of a hosted vault, and the local cache (kept while another
registered vault has the same vault id). A directory you registered yourself, an in-repo
.vaultfold/ directory, the remote branch, the remote repository and the hosted service are never
touched. When the vault was the default vault, the default is cleared.
It refuses (exit 1) when deleting the local copy would lose events not yet pushed: run vaultfold
sync first, or pass --force to discard them. It asks for confirmation on the terminal unless
--yes is given, and it is refused in an agent session (exit 2).
Usage:
vaultfold vault remove <name> [flags]
Flags:
--force remove even when events not yet pushed would be lost
-h, --help help for remove
--yes remove without asking for confirmation (does not override the unpushed-events refusal)
Global Flags:
--json print exactly one JSON document on stdout
--vault name select a vault from the registry by name