Remove-Paylocity Cmdlet
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