Remove-GoogleDirectory Cmdlet
Deletes Google Directory data.
Syntax
Remove-GoogleDirectory [parameters]
Remarks
The Remove-GoogleDirectory cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Google Directory data.
$conn = Connect-GoogleDirectory -InitiateOAuth 'GETANDREFRESH' -OAuthClientId 'OAuthClientId' -OAuthClientSecret 'OAuthClientSecret' Remove-GoogleDirectory -Connection $conn -Table "Group" -Id "S"The Where parameter can also be used to specify the primary key:
Remove-GoogleDirectory -Connection $conn -Table "exTablePowershell;" -Where "Id = S"The primary key can also be passed to the cmdlet along the pipeline:
Select-GoogleDirectory -Connection $conn -Table Group -Where "CustomerId = 'eyt593htjgh'" | Remove-GoogleDirectory