Class: Pvectl::Commands::DeleteContainer

Inherits:
Object
  • Object
show all
Includes:
DeleteCommand
Defined in:
lib/pvectl/commands/delete_container.rb

Overview

Handler for the ‘pvectl delete container` command.

Deletes one or more LXC containers from the cluster. Always requires confirmation (–yes to skip). Running containers must be stopped first or use –force.

Examples:

Delete a single container

pvectl delete container 200 --yes

Delete using ct alias

pvectl delete ct 200 --yes

Delete multiple containers

pvectl delete container 200 201 202 --yes

Force delete running container

pvectl delete container 200 --force --yes

Constant Summary collapse

RESOURCE_TYPE =
:container
SUPPORTED_RESOURCES =
%w[container ct].freeze

Method Summary

Methods included from DeleteCommand

included

Methods included from IrreversibleCommand

#execute, included, #initialize