
ho5lc (ho5lc) asked a question.
If you delete a group, it still returns when you search for that group, even long after it is deleted
Steps to Reproduce:
- Call POST /api/v1/groups
- Call DELETE /api/v1/groups/{GroupID} where GroupId is the ID returned from step 1
- Call GET /api/v1/groups?search=type eq "OKTA_GROUP". Notice that the group deleted in step 2 is in this collection
- Call GET /api/v1/groups/{GroupID}. Returns a 404 saying this group does not exist

Hello @ho5lc (ho5lc) Thank you for reacting out to our Community!
I have run a few tests in my environment and I was unable to reproduce the same behaviour, using the same API call you made. Make sure that the group in question is not a ghost group from a different application or a group with a very similar name.
The Okta Community Catalysts Program is now live. Collect online badges when you participate in the Okta Help Center Questions community. Learn more here.
Ah, I missed a step in my original post: I am adding a single user to the group after Step 1. then I immediately deactivate and then delete the user. Then when you go to delete the group, the group gets into this strange zombie state.
I'm also finding this behaviour through the UI, with groups created via the Terraform provider. The group shows in the search box and returns a 404 when I click through.
We were having this exact same issue. When creating and then deleting groups through Terraform, we would still see them in the Okta dashboard. However, we would get a 404 page when visiting the group's detail page.
As of today (08/25/22), it seems this issue was fixed. We are still seeing old groups that were deleted in the dashboard, though, and we don't have a way to delete them in either Okta or AWS.