1podman-machine-rm(1)() podman-machine-rm(1)()
2
3
4
6 podman-machine-rm - Remove a virtual machine
7
8
10 podman machine rm [options] [name]
11
12
14 Remove a virtual machine and its related files. What is actually
15 deleted depends on the virtual machine type. For all virtual machines,
16 the generated SSH keys and the podman system connection are deleted.
17 The ignition files generated for that VM are also removed as is its im‐
18 age file on the filesystem.
19
20
21 Users get a display of what will be deleted and are required to confirm
22 unless the option --force is used.
23
24
26 --force, -f
27 Stop and delete without confirmation.
28
29
30 --help
31 Print usage statement.
32
33
34 --save-ignition
35 Do not delete the generated ignition file.
36
37
38 --save-image
39 Do not delete the VM image.
40
41
42 --save-keys
43 Do not delete the SSH keys for the VM. The system connection is always
44 deleted.
45
46
48 Remove a VM named "test1":
49
50
51 $ podman machine rm test1
52
53 The following files will be deleted:
54
55 /home/user/.ssh/test1
56 /home/user/.ssh/test1.pub
57 /home/user/.config/containers/podman/machine/qemu/test1.ign
58 /home/user/.local/share/containers/podman/machine/qemu/test1_fedora-coreos-33.20210315.1.0-qemu.x86_64.qcow2
59 /home/user/.config/containers/podman/machine/qemu/test1.json
60
61 Are you sure you want to continue? [y/N] y
62
63
64
65 $ podman machine rm -f test1
66 $
67
68
69
71 podman(1), podman-machine(1)
72
73
75 March 2021, Originally compiled by Ashley Cui acui@redhat.com
76 ⟨mailto:acui@redhat.com⟩
77
78
79
80 podman-machine-rm(1)()