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 -g is 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 are DEBUG, INFO, WARNING or ERROR. 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