How to remove a machine
A machine can be removed with:
juju remove-machine <machine ID>
juju remove-machine 3
However, it is not possible to remove a machine that is currently hosting either a unit or a container. Either remove all of its units (or containers) first or, as a last resort, use the
In some situations, even with the
--force option, the machine on the backing cloud may be left alive. Examples of this include the Manual cloud or if harvest provisioning mode is not set. In addition to those situations, if the client has lost connectivity with the backing cloud, any backing cloud, then the machine may not be destroyed, even if the machine’s record has been removed from the Juju database and the client is no longer aware of it.
By default, when a machine is removed, the backing system, typically a cloud instance, is also destroyed. The
--keep-instance option overrides this; it allows the instance to be left running.
Last updated 4 months ago.