def METHOD_NAME(self, n):
    # build ordered list of non-deleted indexes
    all_alive_indexes = sorted(set(range(self.manifest.current_index))
                               - self.manifest.deleted_indexes)
    to_delete_indexes = all_alive_indexes[-n:]
    self.manifest.delete_records(to_delete_indexes)