Cmdlets for Google Spanner

Build 24.0.9060

Remove-GoogleSpanner Cmdlet

Parameters   Output Objects  

Deletes Google Spanner data.

Syntax

Remove-GoogleSpanner [parameters]

Remarks

The Remove-GoogleSpanner cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Google Spanner data.

$conn = Connect-GoogleSpanner -ProjectId 'project1' -InstanceId 'instance1' -Database 'db1' -OAuthClientId '757060765381' -OauthClientSecret 'abc'
Remove-GoogleSpanner -Connection $conn -Table "[CData].[GoogleSpanner].Customer" -Id "1"
The Where parameter can also be used to specify the primary key:
Remove-GoogleSpanner -Connection $conn -Table "exTablePowershell;" -Where "Id = 1"
The primary key can also be passed to the cmdlet along the pipeline:
Select-GoogleSpanner -Connection $conn -Table [CData].[GoogleSpanner].Customer -Where "CustomerId = '12345'" | Remove-GoogleSpanner

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060