def delete(self):
    for favorite in Vote.all().filter("monster = ",self).run():
      favorite.delete()
    try:
        search.Index(name=_MONSTER_INDEX).delete(str(self.key().id()))
    except __HOLE__ as e:
      if e.message == 'No api proxy found for service "search"':
        pass
      else:
        raise e
      
    db.Model.delete(self)
dataset/ETHPy150Open Sagelt/dungeon-world-codex/data/models.py/Monster.delete