CGDELETE(1)
π CGDELETE π
okay bestie, so this is cgdelete from the libcgroup manual, and she is literally the delete button for your control groups. bye bye cgroup, we hardly knew ye π
β¨ NAME β¨
cgdelete β remove control group(s). that's it. that's the whole job. she deletes. π
β¨ SYNOPSIS β¨
cgdelete [-h] [-r] [-b] [[-g] <controllers>:<path>] ...
likeβ¦ yeah. she takes flags and she takes targets, and she goes to work π¦
β¨ DESCRIPTION β¨
okay so the whole thing cgdelete does is remove all the specified control groups. all of them. every single one you named. no cap. π₯
-bβ this one is lowkey important. it makes the tool ignore the default systemd delegated hierarchy path and instead construct the path of the control groups relative to the cgroup root hierarchy. so likeβ¦ no systemd detour, we're going straight from the root, iykyk π[-g] <controllers>:<path>β this is you telling her which control group to delete. the<controllers>part is the controllers, the<path>part is the path, colon in the middle, iconic. and bestie, you can specify multiple control groups if you want, just keep stacking them π. also the-gis optional β she's flexible like that π-h,--helpβ display this help and exit. the classic. she tells you what she does and then she peaces out π-r,--recursiveβ recursively remove all subgroups. this is the main character energy flag right here. she's not just taking the one group, she's taking the whole family tree. π³π
β¨ ENVIRONMENT VARIABLES β¨
CGROUP_LOGLEVELβ controls verbosity of the tool. allowed values areDEBUG,INFO,WARNINGorERROR. so if she's being too chatty, or not chatty enough, this is the dial. pick your vibe check level π
β¨ EXAMPLES β¨
okay here's a real one, look at her go:
cgdelete -g cpu,devices:/test
what this does: remove control group test from hierarchies containing cpu and device controllers. slay. ate. no crumbs. β¨
β¨ SEE ALSO β¨
cgcreate (1)lscgroup (1)
and that's the page bestie π this one's from the libcgroup Manual, dated 2009-10-26, and the footer says Linux on the left and CGDELETETE(1) energy on the right (well, CGDELETE(1), but you get me). go forth and delete responsibly, mwah π«ΆπΈ
π¦ where this page comes from
- debian trixie: cgroup-tools 3.1.0-2+b2 Β· LGPL-2.1-only
- ubuntu questing: cgroup-tools 3.1.0-2
- ubuntu resolute: cgroup-tools 3.1.0-2build1 Β· LGPL-2.1-only
- ubuntu stonking: cgroup-tools 3.2.0-1 Β· LGPL-2.1-only
- Copyright (C) 2009 Red Hat, Inc. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms