---
name: "cgdelete"
section: "1"
platform: "linux"
package: "cgroup-tools"
version: "3.1.0-2+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cgdelete"
---

# cgdelete(1)

remove control group(s)

## NAME

cgdelete - remove control group(s)

## SYNOPSIS

**cgdelete** \[**-h**\] \[**-r**\] \[**-b**\] \[\[**-g**\] \<*controllers*\>:*\<path*\>\] ...

## DESCRIPTION

The **cgdelete** program removes all specified control groups.

- **-b**

  ignores the default systemd delegated hierarchy path and constructs the path of the control groups relative to the cgroup root hierarchy.

- **\[-g\] \<controllers\>:\<path\>**

  Defines the control group to delete. Multiple control groups may be specified. **-g** is optional.

- **-h, --help**

  Display this help and exit.

- **-r, --recursive**

  Recursively remove all subgroups.

## ENVIRONMENT VARIABLES

- **CGROUP\_LOGLEVEL**

  controls verbosity of the tool. Allowed values are **DEBUG**, **INFO**, **WARNING** or **ERROR**.

## EXAMPLES

- **cgdelete -g cpu,devices:/test**

  remove control group test from hierarchies containing cpu and device controllers

## SEE ALSO

cgcreate (1), lscgroup (1)
