def purge(self):
        doc_ids = self.get_range(ids_only=True)
        while doc_ids:
            self.delete(doc_ids)
            doc_ids = self.get_range(
                ids_only=True,
                start_id=doc_ids[-1],
                include_start_object=False
            )
Deletes all documents from this index.
dataset/ETHPy150Open potatolondon/search/search/indexes.py/Index.purge