Remove-Xero Cmdlet
Deletes Xero data.
Syntax
Remove-Xero [parameters]
Remarks
The Remove-Xero cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Xero data.
$conn = Connect-Xero Remove-Xero -Connection $conn -Table "Contacts" -Id "c27221d7-8290-4204-9f3d-0cfb7c5a3d6f"The Where parameter can also be used to specify the primary key:
Remove-Xero -Connection $conn -Table "exTablePowershell;" -Where "ContactId = c27221d7-8290-4204-9f3d-0cfb7c5a3d6f"The primary key can also be passed to the cmdlet along the pipeline:
Select-Xero -Connection $conn -Table Contacts -Where "ContactStatus = 'ACTIVE'" | Remove-Xero