Cmdlets for Gmail

Build 23.0.8839

Remove-Gmail Cmdlet

Parameters   Output Objects  

Gmail データを削除します。

Syntax

Remove-Gmail [parameters]

Remarks

Remove-Gmail コマンドレットを使って、SQL DELETE ステートメントに似た構文を用いてGmail データを削除できます。

$conn = Connect-Gmail -User 'MyUser' -Password 'MyPassword'
Remove-Gmail -Connection $conn -Table "Inbox" -Id "1001"
Where パラメータは主キーを指定するためにも使われます。
Remove-Gmail -Connection $conn -Table "exTablePowershell;" -Where "Id = 1001"
主キーは、パイプライン上でコマンドレットに渡すこともできます。
Select-Gmail -Connection $conn -Table Inbox -Where "From = 'test@test.com'" | Remove-Gmail

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