public function deleteAll($conditions) { $query = $this->query(); $query->where($conditions); $type = $this->connection()->getIndex()->getType($this->name()); $response = $type->deleteByQuery($query->compileQuery()); return $response->isOk(); }