def delete_elements(fhandle, element_set):
    """Removes specific atoms matching the given element(s).
    """
    records = 'ATOM', 'HETATM', 'ANISOU'
    for line in fhandle:
        if line.startswith(records):
            if line[76:78].strip() in element_set:
                continue
        yield line
