Cmdlets for Paylocity

Build 24.0.9060

Remove-Paylocity Cmdlet

Parameters   Output Objects  

Deletes Paylocity data.

Syntax

Remove-Paylocity [parameters]

Remarks

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

$conn = Connect-Paylocity -InitiateOauth "GETANDREFRESH" -OAuthClientID "YourClientId" -OAuthClientSecret "YourClientSecret" -RSAPublicKey "YourRSAPubKey" -Key "YourKey" -IV "YourIV"
Remove-Paylocity -Connection $conn -Table "Employee" -Id "1234"
The Where parameter can also be used to specify the primary key:
Remove-Paylocity -Connection $conn -Table "exTablePowershell;" -Where "EmployeeId = 1234"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Paylocity -Connection $conn -Table Employee -Where "EmployeeId = '1234'" | Remove-Paylocity

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