public function deleteIndex(): bool
    {
        $indexParams = [
            'index'   => $this->index,
            'timeout' => '5s',
        ];

        $this->client->indices()->delete($indexParams);

        $response = $this->client->cluster()->health([
            'index'           => $this->index,
            'wait_for_status' => 'yellow',
            'timeout'         => '5s',
        ]);

        return isset($response['status']) && $response['status'] !== 'red';
    }
public function deleteIndex(): bool
    {
        $indexParams = [
            'index'   => $this->index,
            'timeout' => '5s',
        ];

        $this->client->indices()->delete($indexParams);

        $response = $this->client->cluster()->health([
            'index'           => $this->index,
            'wait_for_status' => 'yellow',
            'timeout'         => '5s',
        ]);

        return isset($response['status']) && $response['status'] !== 'red';
    }
public function deleteIndex ( ) : bool { $ indexParams = [ 'index' => $ this -> index , 'timeout' => '5s' , ] ; $ this -> client -> indices ( ) -> delete ( $ indexParams ) ; $ response = $ this -> client -> cluster ( ) -> health ( [ 'index' => $ this -> index , 'wait_for_status' => 'yellow' , 'timeout' => '5s' , ] ) ; return isset ( $ response [ 'status' ] ) && $ response [ 'status' ] !== 'red' ; }
Deletes the index for this repository's ReadModel.

@return True, if the index was successfully deleted
Deletes the index for this repository s ReadModel .