machine rm -f stops and removes machine

If you want to remove a running machine, you can now pass the --force/-f
to podman machine rm and the machine will be stopped and removed without
confirmations.

Fixes: #13448

[NO NEW TESTS NEEDED]

Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
Brent Baude
2022-03-08 15:44:40 -06:00
parent f33b64d8b7
commit 5b51b42cc8
3 changed files with 9 additions and 5 deletions

View File

@ -23,9 +23,9 @@ is used.
Print usage statement.
#### **--force**
#### **--force**, **-f**
Delete without confirmation
Stop and delete without confirmation
#### **--save-ignition**
@ -58,6 +58,10 @@ The following files will be deleted:
Are you sure you want to continue? [y/N] y
```
```
$ podman machine rm -f test1
$
```
## SEE ALSO
**[podman(1)](podman.1.md)**, **[podman-machine(1)](podman-machine.1.md)**