<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
How to Bulk Delete Groups via Postman
Lifecycle Management
Okta Classic Engine
Okta Identity Engine
Overview

This article describes how to bulk delete groups via Postman.

NOTE: Postman and Rockstar are third-party tools. Okta is not responsible for any changes to the application, and Support cannot troubleshoot issues with it. Okta strongly recommends testing Runner with a small batch of users before running the call for all users.

Applies To
  • Bulk Delete Groups
  • Postman
Cause
  • API
  • Postman
  • Group Administration
  • Rockstar Browser Extension
Solution

Prerequisites: 


In order to perform a bulk deletion of users via Postman, review the video below or follow the steps:
 

 

  1. Generate a CSV file containing the identification numbers of the desired groups to be deleted, which can be achieved through the utilization of the Rockstar Browser extension and its Export Groups function. 

  2. The column name for the identification numbers in the CSV file must be altered to groupId (with case sensitivity observed) with the following format:

    CSV file  

  3. Create the following call inside Postman :

    Details on how to set up Postman can be found on the How to Integrate Postman with Okta  article:

    DELETE {{url}}/api/v1/groups/{{groupId}}


    Postman 

  4. Create a new collection in Postman and add only the call needed (delete) inside it.

  • Go to Groups collection.
  • Click on Remove Group call.
  • Click Save As.
  • Name the call "Delete Groups".
  • Select the Bulk Remove Groups Collection that was created.
  • Save to Bulk Remove Group.

Postman

  1. Open Postman Runner and select the collection, environment, and iterations (if there are many requests, an Admin can add a delay between calls to not hit the API Rate Limit). The CSV file should look like the one from the screenshot below and then run the call.

     Postman CSV file 


Related References

 

Loading
How to Bulk Delete Groups via Postman