def rebuild_indexes(self, txn):
total_deleted = <NUM_LIT:0><EOL>total_inserted = <NUM_LIT:0><EOL>for name in sorted(self._indexes.keys()):<EOL><INDENT>deleted, inserted = self.rebuild_index(txn, name)<EOL>total_deleted += deleted<EOL>total_inserted += inserted<EOL><DEDENT>return total_deleted, total_inserted<EOL>
:param txn:
:return: