def clean_link_objects(link_objects, schemes):
    """
    Drop all elements of the link_objects that are in schemes.
    """
    schemes = tuple(schemes)
    ret = []
    for link_object in link_objects:
        u = link_object.get('href') or link_object.get('src')
        if u and u.startswith(schemes):
            continue
        ret.append(link_object)
    return ret
