podman-pod-rm(1)
π podman-pod-rm(1) β General Commands Manual π
okay bestie, this is the podman-pod-rm page from the General Commands Manual and it's literally about yeeting pods into the void π«Ά
β¨ NAME β¨
podman-pod-rm β remove one or more stopped pods and containers. that's it. that's the whole job. bye bye pod π
β¨ SYNOPSIS β¨
podman pod rm [options] pod
πΈ DESCRIPTION πΈ
so here's the tea: podman pod rm removes one or more stopped pods and their containers off your host. you can point at the pod by name or by ID, whichever one you've got handy, no judgement π
and if you pass the -f option? it stops all the containers first and then removes them before it removes the pod. main character energy, honestly.
also: if every container that a user added is sitting in an exited state, the pod gets removed. that's the vibe check, and it passed β¨
π OPTIONS π
--all,-aβ remove all the pods. and yes, you can absolutely run this alongside-ftoo, they're besties π«Ά--force,-fβ stop the running containers, delete all the stopped containers, and then remove the pod. no survivors, periodt π--ignore,-iβ ignore errors when the pods you named aren't in the container store. like, real scenario: a user might've decided to manually remove a pod, which then makes things blow up during theExecStopdirective of a systemd service that references that pod. so this option is the "it's fine, we move" button π--latest,-lβ instead of typing a pod name or ID, just use the last created pod. iconic, lazy, we love her.
heads up: the last started pod can be from other users of Podman on the same host machine. also this option is not available with the remote Podman client, including Mac and Windows machines (WSL2 excluded) π
--pod-id-file=fileβ read the pod ID out of the specified file and rm that pod. you can specify this multiple times, go off π
if specified, the pod-id-file is removed along with the pod. so the file leaves with the pod, ride or die π
--time,-t=secondsβ how many seconds to wait before forcibly stopping the running containers inside the pod. use-1for an infinite wait β³
the--forceoption must be specified in order to use the--timeoption. non-negotiable, that's the rule π₯
π EXAMPLE π
remove a pod with a given name:
podman pod rm mywebserverpod
remove multiple pods with given names and/or IDs:
podman pod rm mywebserverpod myflaskserverpod 860a4b23
forcefully remove a pod with a given ID:
podman pod rm -f 860a4b23
forcefully remove all pods:
podman pod rm -f -a
podman pod rm -fa
remove a pod using the ID specified in a given file:
podman pod rm --pod-id-file /path/to/id/file
β Exit Status β
0β all specified pods removed β¨ slay1β one of the specified pods did not exist, and no other failures π«2β one of the specified pods is attached to a container π¬125β the command fails for any other reason π
π¦ SEE ALSO π¦
π HISTORY π
July 2018, originally compiled by Peter Hunt pehunt@redhat.com β¨mailto:pehunt@redhat.comβ© β shoutout to the og π
and that's the whole page bestie, you ate π this was podman-pod-rm(1) from the General Commands Manual, July 2018 edition, mwah ππ
π¦ where this page comes from
- arch rolling: podman-docker 6.1.4-1 Β· Apache-2.0
- fedora 43: podman-docker 5:5.6.2-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 43: podman-docker 5:5.8.4-1.fc43
- fedora 43: podman-docker 5:5.8.8-1.fc43
- fedora 43: podman-docker 5:5.8.9-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: podman-docker 5:5.8.1-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: podman-docker 5:5.8.7-1.fc44
- fedora 44: podman-docker 5:5.8.9-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- ubuntu resolute: podman-docker 5.7.0+ds2-3build1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms