def delete_unused_ontologies(self):
        """Deletes unused ontologies from the Labelbox server."""
        deleted_ontologies = []
        unused_ontologies = self._client.get_unused_ontologies()
        while unused_ontologies:
            for o in unused_ontologies:
                deleted_ontologies.append(o)
                self._client.delete_unused_ontology(o)

            unused_ontologies = self._client.get_unused_ontologies()

        logger.info("Deleted %d ontologies." % len(deleted_ontologies))
Deletes unused ontologies from the Labelbox server.
fiftyone/utils/labelbox.py