6,534
edits
Changes
→Deleting Container: fixed example
You can delete a Container that is not needed anymore with the <code>vzctl destroy ''CTID''</code> command. This command removes the Container private area completely and renames the Container configuration file and action scripts by appending the <code>.destroyed</code> suffix to them.
{{Note|Since vzctl-3.0.24, you can also use the <code>vzctl delete </code> command introduced in Virtuozzo Containers 4.0 to remove Containers from your Hardware Node. This command has the syntax identical to vzctl destroy and is meant to replace the latter in the future.}}
A running Container cannot be destroyed with the <code>vzctl destroy</code> command. The example below illustrates destroying Container 101:
# '''vzctl destroy 101''' Container is currently running. Stop it first. # '''vzctl stop 101''' Stopping container ... Container was stopped Container is unmounted # '''vzctl destroy 101''' Destroying container private area: /vz/private/101 Container private area was destroyed # '''ls /etc/vz/conf/101.*''' /etc/vz/conf/101.conf.destroyed # '''vzctl status 101''' CTID 102 deleted unmounted down
== Disabling Container ==
== Suspending Container ==