// Same as Delete(), but ignores errors when migrating. func (cg Cgroup) DeleteIgnoreMigration() error { return _err(C.cgroup_delete_cgroup(cg.g, C.int(1))) }
// Physically remove a control group from kernel. The group is removed from // all hierarchies, which cover controllers added by Cgroup.AddController() // or GetCgroup(). All tasks inside the group are automatically moved // to parent group. // // The group being removed must be empty, i.e. without subgroups. Use // cgroup_delete_cgroup_ext() for recursive delete. // // TODO correct docs for golang implementation func (cg Cgroup) Delete() error { return _err(C.cgroup_delete_cgroup(cg.g, C.int(0))) }