This script uses the OktaAPI Powershell wrapper. Please download and install prior of using this script https://github.com/gabrielsroka/OktaAPI.psm1
Install-Module OktaAPI
https://www.powershellgallery.com/packages/OktaAPI
This script requires PowerShell 5 or newer This script uses variables. Please replace
$OktaAPIKey = "CHANGE-API-KEY"
$OktaInstance = "https://MYOKTAINSTANCE.okta.com"
inside oktadeavtiveduserdeletion.ps1 with your Okta API Key and your Okta Instance URL.
If you find any bugs feel free to file an issue