Cmdlets for Google BigQuery

Build 24.0.9060

Remove-GoogleBigQuery Cmdlet

Parameters   Output Objects  

Deletes Google BigQuery data.

Syntax

Remove-GoogleBigQuery [parameters]

Remarks

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

$conn = Connect-GoogleBigQuery -ProjectId 'NameOfProject' -DatasetId 'NameOfDataset'
Remove-GoogleBigQuery -Connection $conn -Table "[publicdata].[samples].github_nested" -Id "1"
The Where parameter can also be used to specify the primary key:
Remove-GoogleBigQuery -Connection $conn -Table "exTablePowershell;" -Where "Id = 1"
The primary key can also be passed to the cmdlet along the pipeline:
Select-GoogleBigQuery -Connection $conn -Table [publicdata].[samples].github_nested -Where "repository.name = 'EntityFramework'" | Remove-GoogleBigQuery

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