Google\Cloud\Datastore\Transaction::deleteBatch PHP Method

deleteBatch() public method

No service requests are run when this method is called. Use {@see \Google\Cloud\Datastore\Transaction::commit()} to commit changes. Example: $keys = [ $datastore->key('Person', 'Bob'), $datastore->key('Person', 'John') ]; $transaction->deleteBatch($keys); $transaction->commit();
public deleteBatch ( array $keys ) : Transaction
$keys array The keys to delete.
return Transaction
    public function deleteBatch(array $keys)
    {
        foreach ($keys as $key) {
            $this->mutations[] = $this->operation->mutation('delete', $key, Key::class);
        }
        return $this;
    }