Remove-Acumatica Cmdlet
Deletes Acumatica data.
Syntax
Remove-Acumatica [parameters]
Remarks
The Remove-Acumatica cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Acumatica data.
$conn = Connect-Acumatica -OAuthClientId 'MyApplicationId' -OAuthClientSecret 'MySecretKey' -OAuthCallbackURL 'http://localhost:33333' Remove-Acumatica -Connection $conn -Table "Events" -Id "Jq74mCczmFXk1tC10GB"The Where parameter can also be used to specify the primary key:
Remove-Acumatica -Connection $conn -Table "exTablePowershell;" -Where "Id = Jq74mCczmFXk1tC10GB"The primary key can also be passed to the cmdlet along the pipeline:
Select-Acumatica -Connection $conn -Table Events -Where "Id = 'Jq74mCczmFXk1tC10GB'" | Remove-Acumatica