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

delete() public method

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