def METHOD_NAME(dids, *, session: "Session"):
    """
    Delete temporary file replicas.
    :param dids: the list of files to delete.
    :param session
    """
    where_clause = []
    for did in dids:
        where_clause.append(and_(models.TemporaryDataIdentifier.scope == did['scope'],
                                 models.TemporaryDataIdentifier.name == did['name']))
    if where_clause:
        stmt = delete(models.TemporaryDataIdentifier).\
            prefix_with("/*+ INDEX(tmp_dids TMP_DIDS_PK) */", dialect='oracle').\
            where(or_(*where_clause)).execution_options(synchronize_session=False)
        result = session.execute(stmt)
        return result.rowcount
    return