docs: def remove_object(self, obj):
          """Remove current object from the ElasticSearch."""
          obj_id = self.generate_id(obj)
          es_obj = self.document_class.get(obj_id, ignore=[404])
          # Object may not exist in this index.
          if es_obj:
              es_obj.delete(refresh=True)