Cmdlets for Okta

Build 25.0.9434

Remove-Okta Cmdlet

Parameters   Output Objects  

Deletes Okta data.

Syntax

Remove-Okta [parameters]

Remarks

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

$conn = Connect-Okta -Domain 'dev-44876464.okta.com' -OAuthClientId 'myId' -OAuthClientSecret 'mySecret' -InitiateOAuth 'GETANDREFRESH'
Remove-Okta -Connection $conn -Table "Users" -Id "1"
The Where parameter can also be used to specify the primary key:
Remove-Okta -Connection $conn -Table "exTablePowershell;" -Where "Id = 1"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Okta -Connection $conn -Table Users -Where "Id = '00uip08mzta1JvWRu5d7'" | Remove-Okta

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434