Cmdlets for Xero

Build 22.0.8479

Remove-Xero Cmdlet

Parameters   Output Objects  

Xero データを削除します。

Syntax

Remove-Xero [parameters]

Remarks

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

$conn = Connect-Xero
Remove-Xero -Connection $conn -Table "Contacts" -Id "c27221d7-8290-4204-9f3d-0cfb7c5a3d6f"
Where パラメータは主キーを指定するためにも使われます。
Remove-Xero -Connection $conn -Table "exTablePowershell;" -Where "ContactId = c27221d7-8290-4204-9f3d-0cfb7c5a3d6f"
主キーは、パイプライン上でコマンドレットに渡すこともできます。
Select-Xero -Connection $conn -Table Contacts -Where "ContactStatus = 'ACTIVE'" | Remove-Xero

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8479