DISTROBOX-RM(1)

πŸ“¦
version 1.8.2.5 Β· 6 versions
, in alpine 3.24, arch rolling, epel 10, epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu stonking

πŸ’– DISTROBOX-RM πŸ’–

okay bestie, welcome to the DISTROBOX-RM(1) page β€” part of the Distrobox User Manual, and yes it's giving "spring cleaning but make it terminal" energy. this is the little tool that ✨ deletes ✨ your distroboxes. bye babe πŸ’…


🌸 NAME 🌸

  • distrobox rm
  • distrobox-rm

(yeah it answers to both names, she contains multitudes 🫢)


πŸ¦‹ DESCRIPTION πŸ¦‹

distrobox-rm delete one of the available distroboxes.

like. it removes a distrobox. that's the whole vibe. one distrobox, gone, poof, no takebacks πŸŽ€


✨ SYNOPSIS ✨

distrobox rm

here come the flags, and you're gonna wanna read these fr fr, no skipping:

  • --all, -a β€” delete all distroboxes. every single one. the whole collection. 😭
  • --force, -f β€” force deletion. she's not asking permission, she's just doing it.
  • --rm-home β€” remove the mounted home if it differs from the host user's one. (keyword: if it differs β€” do not come for me, that's literally what it says πŸ’€)
  • --root, -r β€” launch podman/docker/lilipod with root privileges. and okay important note: if you need root, this is the preferred way over "sudo distrobox". also note that if using a program other than sudo for root privileges is necessary, specify it through the DBX_SUDO_PROGRAM env variable, or distrobox_sudo_program config variable. iykyk πŸ‘‘
  • --help, -h β€” show this message
  • --verbose, -v β€” show more verbosity
  • --version, -V β€” show version
bestie warning: --all and --force are the "main character energy" flags. they will absolutely delete things. respect them. 🚨

🌈 EXAMPLES 🌈

the classic, deletin' one container:

distrobox-rm container-name [--force] [--all]

and you can also use environment variables to specify container manager and name, which is lowkey iconic:

DBX_CONTAINER_MANAGER="docker" DBX_CONTAINER_NAME=test-alpine distrobox-rm

see? you can just say which manager and which name up front and she gets it. obsessed. ⭐


🧚 ENVIRONMENT VARIABLES 🧚

the full roster, no notes:

  • DBX_CONTAINER_MANAGER
  • DBX_CONTAINER_NAME
  • DBX_NON_INTERACTIVE
  • DBX_SUDO_PROGRAM

that's the whole page, bestie, you ate that πŸ’…

source/version: Distrobox β€” dated Mar 2026 β€” manual page DISTROBOX-RM(1). go forth and clean up your containers responsibly, ily πŸ“πŸ’œ