Skip to main content

[How-To] Delete CT Manually in Shell

Purpose

Manually delete CT via the proxmox node shell.

Prerequisites

List of prerequisites:

  • Root user for Proxmox Node
  • CT in Proxmox

Deleting the LXC container with the pct tool

Proxmox VE provides the pct command to assist with container actions. In this case, we will use this:

pct destroy 107

 This command where the number is the CT number assigned to it. Please refer to this:

man pct

For more detailed instructions.

If you get an error with this check the error output with this: 

cat /etc/pve/lxc/107.conf

If the LXC is locked, it will not work. Refer to the unlock page for this.