code: def delete_record_translations(cr, module, xml_ids):
      
      if not isinstance(xml_ids, (list, tuple)):
          do_raise("XML IDs %s must be a tuple or list!" % (xml_ids))
  
      cr.execute("""
          SELECT model, res_id
          FROM ir_model_data
          WHERE module = %s AND name in %s
      """, (module, tuple(xml_ids),))
      for row in cr.fetchall():
          query = ("""
              DELETE FROM ir_translation
              WHERE module = %s AND name LIKE %s AND res_id = %s;
          """)
          logged_query(cr, query, (module, row[0] + ',%', row[1],))
docs: Cleanup translations of specific records in a module.
  
      :param module: module name
      :param xml_ids: a tuple or list of xml record IDs