def _role_remove(name, user=None, host=None, port=None, maintenance_db=None,
                 password=None, runas=None):

    # check if user exists
    if not user_exists(name, user, host, port, maintenance_db,
                       password=password, runas=runas):
        log.info('User \'{0}\' does not exist'.format(name))
        return False

    # user exists, proceed
    sub_cmd = 'DROP ROLE "{0}"'.format(name)
    _psql_prepare_and_run(
        ['-c', sub_cmd],
        runas=runas, host=host, user=user, port=port,
        maintenance_db=maintenance_db, password=password)

    if not user_exists(name, user, host, port, maintenance_db,
                       password=password, runas=runas):
        return True
    else:
        log.info('Failed to delete user \'{0}\'.'.format(name))
        return False
Calculate a forward solution for a subject
dataset/ETHPy150Open saltstack/salt/salt/modules/postgres.py/_role_remove--crossover with--dataset/ETHPy150Open mne-tools/mne-python/mne/forward/_make_forward.py/make_forward_solution