Remove-PingOne Cmdlet
Deletes PingOne data.
Syntax
Remove-PingOne [parameters]
Remarks
The Remove-PingOne cmdlet allows you to use a syntax similar to SQL DELETE statements to delete PingOne data.
$conn = Connect-PingOne -AuthScheme 'OAuth' -WorkerAppEnvironmentId 'eebc33a8-xxxx-4f3a-yyyy-d3e5262fd49e' -Region 'NA' -OAuthClientId 'client_id' -OAuthClientSecret 'client_secret' Remove-PingOne -Connection $conn -Table "[CData].[Administrators].Users" -Id "39ef9b6f-5973-4701-bd19-7950d4b7d6e0"The Where parameter can also be used to specify the primary key:
Remove-PingOne -Connection $conn -Table "exTablePowershell;" -Where "Id = 39ef9b6f-5973-4701-bd19-7950d4b7d6e0"The primary key can also be passed to the cmdlet along the pipeline:
Select-PingOne -Connection $conn -Table [CData].[Administrators].Users -Where "Id = '39ef9b6f-5973-4701-bd19-7950d4b7d6e0'" | Remove-PingOne