Remove-GoogleDrive Cmdlet
Google Drive データを削除します。
Syntax
Remove-GoogleDrive [parameters]
Remarks
Remove-GoogleDrive コマンドレットを使って、SQL DELETE ステートメントに似た構文を用いてGoogle Drive データを削除できます。
$conn = Connect-GoogleDrive -InitiateOAuth "GETANDREFRESH" -OAuthClientId "myClientId" -OAuthClientSecret "myClientSecret" -OAuthSettingsLocation "myOAuthSettings.txt" Remove-GoogleDrive -Connection $conn -Table "Files" -Id "S"Where パラメータは主キーを指定するためにも使われます。
Remove-GoogleDrive -Connection $conn -Table "exTablePowershell;" -Where "Id = S"主キーは、パイプライン上でコマンドレットに渡すこともできます。
Select-GoogleDrive -Connection $conn -Table Files -Where "Extension = 'png'" | Remove-GoogleDrive