Datastore/src/Transaction.php
public function deleteBatch(array $keys)
    {
        foreach ($keys as $key) {
            $this->mutations[] = $this->operation->mutation('delete', $key, Key::class);
        }

        return $this;
    }
public function deleteBatch(array $keys)
    {
        foreach ($keys as $key) {
            $this->mutations[] = $this->operation->mutation('delete', $key, Key::class);
        }

        return $this;
    }
public function deleteBatch ( array $ keys ) { foreach ( $ keys as $ key ) { $ this -> mutations [ ] = $ this -> operation -> mutation ( 'delete' , $ key , Key :: class ) ; } return $ this ; }
Delete multiple records.

Changes are not immediately committed to Cloud Datastore when calling
this method. Use {@see Google\Cloud\Datastore\Transaction::commit()} to
commit changes and end the transaction.

Example:
```
$keys = [
$datastore->key('Person', 'Bob'),
$datastore->key('Person', 'John')
];

$transaction->deleteBatch($keys);
$transaction->commit();
```

@param Key[] $keys The keys to delete.
@return Transaction
Delete multiple records .