aboutsummaryrefslogtreecommitdiff
path: root/docs/source/markdown/podman-machine-remove.1.md
blob: 07763741d0925d33b00b11bff306f197008c363c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
% podman-machine-remove(1)

## NAME
podman\-machine\-remove - Remove a virtual machine

## SYNOPSIS
**podman machine remove** [*options*] *name*

## DESCRIPTION

Remove a virtual machine and its related files.  What is actually deleted
depends on the virtual machine type.  For all virtual machines, the generated
SSH keys and the podman system connection are deleted.  The ignition files
generated for that VM are also removeed as is its image file on the filesystem.

Users get a display of what will be deleted and are required to confirm unless the option `--force`
is used.


## OPTIONS

#### **--help**

Print usage statement.

#### **--force**

Delete without confirmation

#### **--save-ignition**

Do not delete the generated ignition file

#### **--save-image**

Do not delete the VM image

#### **--save-keys**

Do not delete the SSH keys for the VM.  The system connection is always
deleted.

## EXAMPLES

Remove a VM named "test1"

```
$ podman machine remove test1

The following files will be deleted:

/home/user/.ssh/test1
/home/user/.ssh/test1.pub
/home/user/.config/containers/podman/machine/qemu/test1.ign
/home/user/.local/share/containers/podman/machine/qemu/test1_fedora-coreos-33.20210315.1.0-qemu.x86_64.qcow2
/home/user/.config/containers/podman/machine/qemu/test1.json

Are you sure you want to continue? [y/N] y
```

## SEE ALSO
podman-machine (1)

## HISTORY
March 2021, Originally compiled by Ashley Cui <acui@redhat.com>