2.6. Removing Control Groups
Use
cgdelete
to remove cgroups. It has similar syntax as cgcreate
. Run the following command:
cgdelete subsystems:path
where:
- subsystems is a comma‑separated list of subsystems.
- path is the path to the cgroup relative to the root of the hierarchy.
For example:
~]# cgdelete cpu,net_cls:/test-subgroup
cgdelete
can also recursively remove all subgroups with the option -r
.
When you delete a cgroup, all its tasks move to its parent group.