BulkCommand.php
public function addDeleteAction($id, $index = null, $type = null)
    {
        $actionData = ['_id' => $id];

        if (!empty($index)) {
            $actionData['_index'] = $index;
        }

        if (!empty($type)) {
            $actionData['_type'] = $type;
        }

        $this->addAction(['delete' => $actionData]);
    }
public function addDeleteAction($id, $index = null, $type = null)
    {
        $actionData = ['_id' => $id];

        if (!empty($index)) {
            $actionData['_index'] = $index;
        }

        if (!empty($type)) {
            $actionData['_type'] = $type;
        }

        $this->addAction(['delete' => $actionData]);
    }
public function addDeleteAction ( $ id , $ index = null , $ type = null ) { $ actionData = [ '_id' => $ id ] ; if ( ! empty ( $ index ) ) { $ actionData [ '_index' ] = $ index ; } if ( ! empty ( $ type ) ) { $ actionData [ '_type' ] = $ type ; } $ this -> addAction ( [ 'delete' => $ actionData ] ) ; }
Adds a delete action to the command.
@param string $id Document ID
@param string $index Index that the document belogs to. Can be set to null if the command has
a default index ([[BulkCommand::$index]]) assigned.
@param string $type Type that the document belogs to. Can be set to null if the command has
a default type ([[BulkCommand::$type]]) assigned.
Adds a delete action to the command .