Delete an Okta Group via API Using Postman
Last Updated:
Overview
Delete an unwanted Okta group of OKTA_GROUP or APP_GROUP type by executing a DELETE request via the Okta Groups API. Use an API client, such as Postman, to run the Remove Group API call and remove the specified group from the organization.
Applies To
- Okta Identity Engine (OIE)
- Okta Classic Engine
- Application Programming Interface (API)
- Okta API
- Groups
- Postman
Solution
How is an unwanted group deleted via the Okta API?
Delete an unwanted group by installing an API client, downloading the Okta API collections, and executing the Remove Group API call as detailed in either the video demonstration or the written instructions. Postman is used as an example API client; use a tool that best fits the organization's guidelines.
- Install Postman and integrate it with Okta.
- Download the desired collections.
- Run the List Groups API call under the Groups collection to locate the group and copy the group ID.
- Select the Remove Group API call.
- Replace
{{groupId}}with the copied group ID in the following endpoint:DELETE {{url}}/api/v1/groups/{{groupId}}
- Select Send.
NOTE: It is not possible to remove groups of APP_GROUP type if they are used in a group push mapping.
