lxc-destroy(1)
π NAME π
ok so bestie, this is lxc-destroy β section 1 of the manual, the destroy a container girlie π
she's the one you call when a container has gotta GO.
β¨ SYNOPSIS β¨
lxc-destroy {-n name} [-f] [-s]
π¦ DESCRIPTION π¦
lxc-destroy destroys the system object that was previously created by the lxc-create command. that's it, that's the whole vibe β it's the cleanup queen π you made it with lxc-create, now you unmake it, no cap.
π OPTIONS π
-f,--forceβ if the container is running, stop it first. and like, if you don't pass this and the container IS running? thenlxc-destroygets aborted, periodt. so basically it's the "idc just do it" flag π«Ά-s,--snapshotsβ destroy the specified container including all its snapshots. all of them. every last one. iconic but ruthless π
πΈ COMMON OPTIONS πΈ
these ones are common to most of the lxc commands, so you'll see them everywhere, iykyk:
-?,-h,--helpβ print a longer usage message than normal. the deluxe version π--usageβ give the usage message-q,--quietβ mute on π-P,--lxcpath=PATHβ use an alternate container path. the default is/var/lib/lxc-o,--logfile=FILEβ output to an alternate logFILE. the default is no log-l,--logpriority=LEVELβ set log priority to LEVEL. the default log priority isERROR. possible values are:FATAL,ALERT,CRIT,WARN,ERROR,NOTICE,INFO,DEBUG,TRACE
ngl, little heads up: this option sets the priority of the events log in the alternate log file. it does not have any effect on theERRORevents log onstderr. so don't come for her when stderr is still loud π
-n,--name=NAMEβ use container identifier NAME. the container identifier format is an alphanumeric string--rcfile=FILEβ specify the configuration file used to configure the virtualization and isolation functionalities for the container
and bestie, listen: this configuration file, if present, will be used even if there's already a configuration file present in the previously created container (via lxc-create). she said this one, and she meant it π
--versionβ show the version number
π DIAGNOSTIC π
- The container was not found β the specified container for destruction was not found π it's probable it doesn't exist and was already destroyed. you can use the
lxc-lscommand to list the available containers on the system β go check, she might already be gone fr fr.
π SEE ALSO π
lxc(7), lxc-create(1), lxc-copy(1), lxc-destroy(1), lxc-start(1), lxc-stop(1), lxc-execute(1), lxc-console(1), lxc-monitor(1), lxc-wait(1), lxc-cgroup(1), lxc-ls(1), lxc-info(1), lxc-freeze(1), lxc-unfreeze(1), lxc-attach(1), lxc.conf(5)
okay that's the whole page bestie, go forth and destroy responsibly β¨π
this little masterpiece is dated 2026-05-01 and lives under the name lxc-destroy(1) β mwah, take care, ily π«Άπ
π¦ where this page comes from
- alpine 3.24: lxc-doc 7.0.0-r0 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms