Remove-GoogleSheets Cmdlet
Deletes Google Sheets data.
Syntax
Remove-GoogleSheets [parameters]
Remarks
The Remove-GoogleSheets cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Google Sheets data.
$conn = Connect-GoogleSheets Remove-GoogleSheets -Connection $conn -Table "Spreadsheet1_Sheet1" -Id "6"The Where parameter can also be used to specify the primary key:
Remove-GoogleSheets -Connection $conn -Table "exTablePowershell;" -Where "Id = 6"The primary key can also be passed to the cmdlet along the pipeline:
Select-GoogleSheets -Connection $conn -Table Spreadsheet1_Sheet1 -Where "Column2 = 'Bob'" | Remove-GoogleSheets