Remove group via API request

In addition to the Create Group and Edit Group API endpoints, is there a way to delete groups using the CCHQ API? We have thousands of case sharing groups, and would like to create a tool to delete groups that are not longer needed.

Thanks

Hi Ray

We do not have an API for this at present but we are in the process of releasing one. I will report back here once it’s live.

This API has been implemented. You can now issue a DELETE request to a group’s API URL to have the group deleted.

$ curl -X DELETE https://www.commcarehq.org/a/<domain>/api/v0.5/group/<group id>/