CGDELETE(1) libcgroup Manual CGDELETE(1)

# [NAME](#NAME)

cgdelete - remove control group(s)

# [SYNOPSIS](#SYNOPSIS)

**cgdelete** \[**-h**] \[**-r**] \[**-b**] \[\[**-g**] &lt;*controllers*&gt;:*&lt;path*&gt;] ...

# [DESCRIPTION](#DESCRIPTION)

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

[**-b**](#b)

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

**\[-g] &lt;controllers&gt;:&lt;path&gt;**

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

[**-h, --help**](#h,)

Display this help and exit.

[**-r, --recursive**](#r,)

Recursively remove all subgroups.

# [ENVIRONMENT VARIABLES](#ENVIRONMENT_VARIABLES)

[**CGROUP\_LOGLEVEL**](#CGROUP_LOGLEVEL)

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

# [EXAMPLES](#EXAMPLES)

[**cgdelete -g cpu,devices:/test**](#cgdelete)

remove control group test from hierarchies containing cpu and device controllers

# [SEE ALSO](#SEE_ALSO)

[cgcreate (1)](/man/enterprise-packages/libcgroup/cgcreate.1), [lscgroup (1)](/man/enterprise-packages/libcgroup/lscgroup.1)

2009-10-26 Linux

---

Document: cgdelete(1) from libcgroup 3.2.0-r10 (Chainguard OS)
Source: https://github.com/libcgroup/libcgroup
