src/Sherlock/requests/DeleteDocumentRequest.php
public function document($id)
    {
        if (!$this->batch instanceof BatchCommand) {
                        throw new exceptions\RuntimeException("Cannot delete a document from an external BatchCommandInterface");
        }

        $command = new Command();
        $command->id($id)
            ->action('delete');

        //Only doing this because typehinting is wonky without it...
        if ($this->batch instanceof BatchCommand) {
            $this->batch->addCommand($command);
        }

        return $this;
    }
public function document($id)
    {
        if (!$this->batch instanceof BatchCommand) {
                        throw new exceptions\RuntimeException("Cannot delete a document from an external BatchCommandInterface");
        }

        $command = new Command();
        $command->id($id)
            ->action('delete');

        //Only doing this because typehinting is wonky without it...
        if ($this->batch instanceof BatchCommand) {
            $this->batch->addCommand($command);
        }

        return $this;
    }
The document to delete

@param  null                                         $id

@throws \Sherlock\common\exceptions\RuntimeException
@return DeleteDocumentRequest