def _delete(self, opts):
    if (opts.rbac_user is None):
        _exit_if_errors(['--rbac-username is required with the --delete option'])
    if (opts.rbac_pass is not None):
        _warning('--rbac-password is not used with the --delete option')
    if (opts.rbac_name is not None):
        _warning('--rbac-name is not used with the --delete option')
    if (opts.roles is not None):
        _warning('--roles is not used with the --delete option')
    if (opts.auth_domain is None):
        _exit_if_errors(['--auth-domain is required with the --delete option'])
    (_, errors) = self.rest.delete_rbac_user(opts.rbac_user, opts.auth_domain)
    _exit_if_errors(errors)
    _success(f"User '{opts.rbac_user}' was removed")
def _delete(self, opts):
    if (opts.rbac_user is None):
        _exit_if_errors(['--rbac-username is required with the --delete option'])
    if (opts.rbac_pass is not None):
        _warning('--rbac-password is not used with the --delete option')
    if (opts.rbac_name is not None):
        _warning('--rbac-name is not used with the --delete option')
    if (opts.roles is not None):
        _warning('--roles is not used with the --delete option')
    if (opts.auth_domain is None):
        _exit_if_errors(['--auth-domain is required with the --delete option'])
    (_, errors) = self.rest.delete_rbac_user(opts.rbac_user, opts.auth_domain)
    _exit_if_errors(errors)
    _success(f"User '{opts.rbac_user}' was removed")