ElasticSearch\Transport\HTTP::delete PHP Method

delete() public method

Flush this index/type combination
public delete ( mixed $id = false, array $options = [] ) : array
$id mixed Id of document to delete
$options array Parameters to pass to delete action
return array
    public function delete($id = false, array $options = array())
    {
        if ($id) {
            return $this->call($this->buildUrl(array($this->type, $id), $options), "DELETE");
        } else {
            return $this->request(false, "DELETE");
        }
    }