Cmdlets for Square

Build 24.0.9060

Remove-Square Cmdlet

Parameters   Output Objects  

Deletes Square data.

Syntax

Remove-Square [parameters]

Remarks

The Remove-Square cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Square data.

$conn = Connect-Square -OAuthClientId 'MyApplicationId' -OAuthClientSecret 'MyApplicationSecret' -CallbackURL 'http://localhost:33333' -LocationId 'MyDefaultLocation'
Remove-Square -Connection $conn -Table "Payments" -Id "Jq74mCczmFXk1tC10GB"
The Where parameter can also be used to specify the primary key:
Remove-Square -Connection $conn -Table "exTablePowershell;" -Where "Id = Jq74mCczmFXk1tC10GB"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Square -Connection $conn -Table Payments -Where "Id = 'Jq74mCczmFXk1tC10GB'" | Remove-Square

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