Skip to main content

Your submission was sent successfully! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates from Canonical and upcoming events where you can meet our team.Close

Thank you for contacting us. A member of our team will be in touch shortly. Close

`multipass unalias` command

See also: alias, Alias, How to use command aliases

The multipass unalias command removes a previously defined alias.

multipass unalias name

This will remove the given alias name, returning an error if the alias is not defined.

If an instance is deleted and purged, it is not necessary to run unalias for the aliases defined on that instance, as they are automatically removed.

You can remove multiple aliases in a single command:

multipass unalias name1 name2 name3

Or, use the argument --all to remove all the defined aliases:

multipass unalias --all

The full multipass help unalias output explains the available options:

Usage: multipass unalias [options] <name> [<name> ...]
Remove aliases

Options:
  -h, --help     Displays help on commandline options
  -v, --verbose  Increase logging verbosity. Repeat the 'v' in the short option
                 for more detail. Maximum verbosity is obtained with 4 (or more)
                 v's, i.e. -vvvv.
  --all          Remove all aliases from current context

Arguments:
  name           Names of aliases to remove

Errors or typos? Topics missing? Hard to read? Let us know or open an issue on GitHub.

Last updated 3 months ago. Help improve this document in the forum.