Product SiteDocumentation Site

2.6. Removing Cgroups

Remove cgroups with the cgdelete, which has a syntax similar to that of cgcreate. Run: cgdelete subsystems:path, where:
For example:
cgdelete cpu,net_cls:/test-subgroup
cgdelete can also recursively remove all subgroups with the option -r.
When you delete a control group, all its tasks move to its parent group.