public function delete(array $options = [])
    {
        if (!$this->id) {
            throw new InvalidArgumentException('Kuzzle\Document::delete: cannot delete a document without a document ID');
        }

        $this->collection->getKuzzle()->query(
            $this->collection->buildQueryArgs('document', 'delete'),
            $this->collection->getKuzzle()->addHeaders($this->serialize(), $this->headers),
            $options
        );

        return $this->id;
    }