public function delete($id, $type) { $result = $this->client->request('DELETE', "/{$this->indexName}/{$type}/{$id}"); $this->flush(); }