'Delete desired cgroup.
:params cgroup: desired cgroup
:params force:If true, sub cgroup can be deleted with parent cgroup'

def cgdelete_cgroup(self, cgroup, recursive=False):

    try:
        cgroup_pwd = self.__get_cgroup_pwd(cgroup)
        if (cgroup_pwd not in self.cgroups):
            raise error.TestError(("%s    doesn't    exist!" % cgroup))
        cmd = ('cgdelete    %s:%s' % (self.module, cgroup))
        if recursive:
            cmd += '    -r'
        utils.run(cmd, ignore_status=False)
        self.cgroups.remove(cgroup_pwd)
    except error.CmdError as detail:
        raise error.TestFail(('cgdelete    %s    failed!\n%s' % (cgroup, detail)))
