docs/cli/unuse.md
mise unusemise unuse [FLAGS] <INSTALLED_TOOL@VERSION>…rm, removesrc/cli/unuse.rsRemoves installed tool versions from mise.toml
By default, this will use the mise.toml file that has the tool defined.
If multiple config files exist (e.g., both mise.toml and mise.local.toml),
the lowest precedence file (mise.toml) will be used.
See https://mise.en.dev/configuration.html#target-file-for-write-operations
In the following order:
--global is set, it will use the global config file.--path is set, it will use the config file at the given path.--env is set, it will use mise.<env>.toml.MISE_DEFAULT_CONFIG_FILENAME is set, it will use that instead.MISE_OVERRIDE_CONFIG_FILENAMES is set, it will the first from that list.Will also prune the installed version if no other configurations are using it.
<INSTALLED_TOOL@VERSION>…Tool(s) to remove
-e --env <ENV>Create/modify an environment-specific config file like .mise.<env>.toml
-g --globalUse the global config file (~/.config/mise/config.toml) instead of the local one
-p --path <PATH>Specify a path to a config file or directory
If a directory is specified, it will look for a config file in that directory following the rules above.
--no-pruneDo not also prune the installed version
Examples:
# will uninstall specific version
$ mise unuse [email protected]
# will uninstall specific version from global config
$ mise unuse -g [email protected]
# will uninstall specific version from .mise.local.toml
$ mise unuse --env local node@20
# will uninstall specific version from .mise.staging.toml
$ mise unuse --env staging node@20