Cmdlets for Gmail

Build 25.0.9434

Remove-Gmail Cmdlet

Parameters   Output Objects  

Deletes Gmail data.

Syntax

Remove-Gmail [parameters]

Remarks

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

$conn = Connect-Gmail -User 'MyUser' -Password 'MyPassword'
Remove-Gmail -Connection $conn -Table "Inbox" -Id "1001"
The Where parameter can also be used to specify the primary key:
Remove-Gmail -Connection $conn -Table "exTablePowershell;" -Where "Id = 1001"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Gmail -Connection $conn -Table Inbox -Where "From = '[email protected]'" | Remove-Gmail

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434