def _delete_group(self, opts):
    if (opts.group is None):
        _exit_if_errors(['--group-name is required with the --delete-group option'])
    (_, errors) = self.rest.delete_user_group(opts.group)
    _exit_if_errors(errors)
    _success(f"Group '{opts.group}' was deleted")
def _delete_group(self, opts):
    if (opts.group is None):
        _exit_if_errors(['--group-name is required with the --delete-group option'])
    (_, errors) = self.rest.delete_user_group(opts.group)
    _exit_if_errors(errors)
    _success(f"Group '{opts.group}' was deleted")