← 返回命令列表

Linux command

pct-destroy 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Destroy

pct destroy 100

Force

pct destroy 100 --force

Example

pct destroy 100 --purge

说明

pct destroy removes a Proxmox LXC container and its associated storage. By default, the container must be stopped first unless the force option is used.

参数

vmid
The numeric ID of the container
--force
Destroy even if the container is running
--purge
Also remove all references to this container (jobs, replication, etc.)

FAQ

What is the pct-destroy command used for?

pct destroy removes a Proxmox LXC container and its associated storage. By default, the container must be stopped first unless the force option is used.

How do I run a basic pct-destroy example?

Run `pct destroy 100` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does vmid do in pct-destroy?

The numeric ID of the container