Product SiteDocumentation Site

2.6. Removing Control Groups

Remove cgroups with the cgdelete, which has a syntax similar to that of cgcreate. Run the following command:
cgdelete subsystems:path
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.