`multipass delete` command

See also: multipass recover, multipass purge

The multipass delete command will delete the instances or snapshots that are specified as arguments. Arguments for instances and snapshots can be mixed in the same delete call:

$ multipass delete --purge legal-takin calm-squirrel.snapshot2

A deleted instance is removed from use but, unless the -p/--purge is passed, remains available to recover with the recover command. To completely destroy instances and release the disk space they take up, use --purge or call the purge command.

Snapshots can only be fully deleted (they cannot be recovered later).

The --all option will delete all instances (and their snapshots). Take care if using this option.

The output of multipass help delete explains available options:

$ multipass help delete
Usage: multipass delete [options] <instance>[.snapshot] [<instance>[.snapshot] ...]
Delete instances and snapshots. Instances can be purged immediately or later on,
with the "purge" command. Until they are purged, instances can be recovered
with the "recover" command. Snapshots cannot be recovered after deletion and must be purged at once.

  -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          Delete all instances and snapshots
  -p, --purge    Permanently delete specified instances and snapshots

  name           Names of instances and snapshots to delete

Thanks but what is the “legal-takin” in the command line?
I tried to delete a snapshot of an instance but ended having the instance deleted as well.
Does multipass actually support deleting a snapshot without deleting the instance?

Hi @unicornboat!

legal-takin would be the name of the instance. If you want to delete a snapshot named snapshot2 for the instance legal-takin, then it would be in the form of:

$ multipass delete legal-takin.snapshot2

If you don’t specify a snapshot name, then yes, it will delete the instance and snapshots.

I hope this helps!