<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def schema_remove(dbname, name,
                  user=None,
                  db_user=None, db_password=None,
                  db_host=None, db_port=None):
    '''
    Removes a schema from the Postgres server.

    CLI Example:

    .. code-block:: bash

        salt '*' postgres.schema_remove dbname schemaname

    dbname
        Database name we work on

    schemaname
        The schema's name we'll remove

    user
        System user all operations should be performed on behalf of

    db_user
        database username if different from config or default

    db_password
        user password if any password for a specified user

    db_host
        Database host if different from config or default

    db_port
        Database port if different from config or default

    '''

    # check if schema exists
    if not schema_exists(dbname, name, user=None,
                         db_user=db_user, db_password=db_password,
                         db_host=db_host, db_port=db_port):
        log.info('Schema \'%s\' does not exist in \'%s\'', name, dbname)
        return False

    # schema exists, proceed
    sub_cmd = 'DROP SCHEMA "{0}"'.format(name)
    _psql_prepare_and_run(
        ['-c', sub_cmd],
        runas=user,
        maintenance_db=dbname,
        host=db_host, user=db_user, port=db_port, password=db_password)

    if not schema_exists(dbname, name, user,
                         db_user=db_user, db_password=db_password,
                         db_host=db_host, db_port=db_port):
        return True
    else:
        log.info('Failed to delete schema \'%s\'.', name)
        return False