public function deleteDoc($id)
    {
        $this->config['client']->delete(
            [
                'id' => $id,
                'index' => $this->getIndex()->getName(),
                'type' => $this->getType()
            ]
        );
    }
public function deleteDoc($id)
    {
        $this->config['client']->delete(
            [
                'id' => $id,
                'index' => $this->getIndex()->getName(),
                'type' => $this->getType()
            ]
        );
    }
public function deleteDoc ( $ id ) { $ this -> config [ 'client' ] -> delete ( [ 'id' => $ id , 'index' => $ this -> getIndex ( ) -> getName ( ) , 'type' => $ this -> getType ( ) ] ) ; }
Delete a specific database record within Elasticsearch

@param $id Eloquent id of model object
Delete a specific database record within Elasticsearch