LinuxCommandLibrary

lxc-destroy

deletes a Linux container and its configuration

TLDR

Delete container

$ sudo lxc-destroy [container_name]
copy
Display help
$ lxc-destroy --help
copy

SYNOPSIS

lxc-destroy -n name [options]

DESCRIPTION

lxc-destroy deletes a Linux container and its configuration. The container must be stopped before destruction.

PARAMETERS

-n, --name NAME

Container name to destroy
-P, --lxcpath PATH
Container storage directory
-f, --force
Force destruction even if running
-s, --snapshots
Also destroy all snapshots
-?, --help
Display help information

CAVEATS

Requires root privileges. Permanently deletes container and its root filesystem. Stop container first unless using --force.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community