<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00009DkWryCAFOkta Classic EngineAdministrationAnswered2026-06-04T19:41:06.000Z2023-05-24T09:01:16.000Z2026-06-04T19:41:06.000Z

b1332 (b1332) asked a question.

Performing a Bulk Delete of Okta Users

Hi Everyone!

 

Does anyone here tried the Bulk Delete of Users at Okta using API (https://support.okta.com/help/s/article/How-to-Perform-a-Bulk-Delete-of-Okta-Users-With-API?language=en_US)? It is my first-time using Okta and I am not sure what could be the possible issue that I always received users are not found when trying to run the script to delete the bulk users even if the said users are visible and available at the Okta Admin Console. Is there someone that can help me out?

 

Thank you!


  • Then the issue might be the level of admin that you might have since you get unauthorised. That indicates that you do not have permission to do it.

    Selected as Best
  • Hello @b1332 (b1332)​ Thank you for reacting out to our Community!

     

    I have used this in the past and the script works as intended. One this that comes to mind is that the CSV does not have the proper details or is setup incorrectly and can not retrieve the correct user information.

     

    Community members help others by clicking Like or Select as Best on responses. Try it today.

    Watch and Learn: New Okta how-to videos, plus what's new this month in the May newsletter.

    Expand Post
    • b1332 (b1332)

      hi @paul.stiniguta1.508386743840768E12 (Okta, Inc.)

       

      Thank you for your help, one thing in mind I forgot to ask I also received a (401) Unauthorized error after running the script on powershell. Is there anything you can advise on where to check about this one?

      • Then the issue might be the level of admin that you might have since you get unauthorised. That indicates that you do not have permission to do it.

        Selected as Best
This question is closed.
Loading
Performing a Bulk Delete of Okta Users