Remove-Gmail Cmdlet
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