---
name: "dtc_kill_vps_disk"
section: "8"
platform: "linux"
package: "dtc-xen"
version: "0.5.17-1.2"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/dtc_kill_vps_disk"
---

# dtc\_kill\_vps\_disk(8)

destroy LVM disks for freeing space

## NAME

dtc\_kill\_vps\_disk - destroy LVM disks for freeing space

## SYNOPSIS

**dtc\_kill\_vps\_disk** *VPS\_NUMBER* \[ *lvm\|loopback* \]

## DESCRIPTION

**dtc\_kill\_vps\_disk** This shell script is a part of the dtc-xen package that is to be used by the dtc panel to manage a Xen VPS server.

This script is used to delete a partitions that was used by a VPS. It will delete the normal partition that was used as a root disk, and the swap partition.

dtc\_kill\_vps\_disk is to be used by the dtc-xen SOAP server, but can also be used as a standalone userland tool.

## OPTIONS

**VPS\_NUMBER** has to be a number between 01 and 19. Let's say the number is 16, and that dtc-xen is configured to use the volume group called lvm1, then this script will create /dev/lvm1/xen16 and /dev/lvm1/xen16swap.

**IMAGE\_TYPE** This parameter can have 2 values: either lvm or loopback. If ommited, then lvm is used. If lvm is used, then this script will create a partition using lvmcreate, otherwise it will create an image file. Both will later be used for the VPS.

## EXAMPLE

**dtc\_setup\_vps\_disk 04 lvm**

This will delete the 2 LVM partitions that were used by the VPS named xen04, the first one being the root partition, and the second one being the swap partition.

## VERSION

This documentation describes **dtc\_kill\_vps\_disk** See **http://www.gplhost.com/software-dtc-xen.html** for updates.

## SEE ALSO

[dtc\_reinstall\_os(8)](/dtc_reinstall_os/8.md), [dtc\_setup\_vps\_disk(8)](/dtc_setup_vps_disk/8.md)
