public function delete(BulkOperation $bulk, Iterator $records)
    {
        foreach ($records as $record) {
            $bulk->delete([
                'id' => $record->getId(),
                'type' => self::TYPE_NAME
            ], null);
        }
    }
public function delete(BulkOperation $bulk, Iterator $records)
    {
        foreach ($records as $record) {
            $bulk->delete([
                'id' => $record->getId(),
                'type' => self::TYPE_NAME
            ], null);
        }
    }
public function delete ( BulkOperation $ bulk , Iterator $ records ) { foreach ( $ records as $ record ) { $ bulk -> delete ( [ 'id' => $ record -> getId ( ) , 'type' => self :: TYPE_NAME ] , null ) ; } }
Deleta a list of records

@param BulkOperation $bulk
@param Iterator $records
Deleta a list of records