Skip to content

mise bootstrap unapply ​

  • Usage: mise bootstrap unapply [FLAGS] <ENV>…
  • Effect: destructive — may delete or irreversibly overwrite
  • Source code: src/cli/bootstrap.rs

Remove what a config environment's bootstrap sections created

Removes the files, directories, user services, systemd user units, and dotfile entries and edits that the named environments declare. Each named environment's config is loaded for this command even when -E or MISE_ENV does not select it.

mise plans the removal from the current config, not from a record of past runs, so keep the environment's config files until cleanup is done. Anything another selected config still declares is kept, and so is anything changed since it was applied unless you pass --force. A directory is removed only if it is empty afterward. Dotfile sources and config entries are left in place.

It asks before removing anything unless --yes, MISE_YES, or the yes setting is set, and fails when there is no terminal to ask. mise turns on the yes setting when CI is set.

Packages, repositories, and Compose projects are not removed; the output says how to clean them up. Accounts, system services, the firewall, and other sections are left alone.

Arguments ​

  • <ENV>… — Config environments whose resources should be removed

Flags ​

  • -f --force — Remove targets that changed since they were applied
  • -n --dry-run — Show what would be removed without removing anything
  • -y --yes — Skip the confirmation prompt
  • --prompt-secrets — Prompt securely for missing bootstrap secret inputs
  • -h --help — Print help

Examples ​

Preview what removing the ssh environment's resources would do

mise bootstrap unapply ssh --dry-run

Remove them after a confirmation prompt

mise bootstrap unapply ssh

Remove the resources of two environments without a prompt

mise bootstrap unapply ssh gpg --yes
MIT LicenseCopyright © 2026jdx.dev