docs: def DeleteHuntObject(self, hunt_id, cursor=None):
      """Deletes a given hunt object."""
      query = "DELETE FROM hunts WHERE hunt_id = %s"
      hunt_id_int = db_utils.HuntIDToInt(hunt_id)
  
      rows_deleted = cursor.execute(query, [hunt_id_int])
      if rows_deleted == 0:
        raise db.UnknownHuntError(hunt_id)
  
      query = "DELETE FROM hunt_output_plugins_states WHERE hunt_id = %s"
      cursor.execute(query, [hunt_id_int])