protected function deleteInClient($index)
    {
        $namespace      = $this->client->indices();
        $indexRealname  = $this->getIndexRealname($index);

        if ($namespace->exists(['index' => $indexRealname])) {
            $namespace->delete(['index' => $indexRealname]);
        }
    }