delete the case class prediction and query