Currently, we cannot delete any newly created OAuth clients on both Java SDK or Genesys UI.
Using Java we receive "clients that are not inactive cannot be deleted" although the clients are not used at all.
If we attempt to delete the client from within the UI, after pressing the "Delete Application" button the popup window is stuck on "Querying API usage...".
This seems to be a new behaviour we didn't have in the past. Could you please investigate?
Some additional information on the UI bug:
After pressing the "Delete Application" an HTTP 400 in thrown in the logs when sending an HTTP POST to https://apps.mypurecloud.com/platform/api/v2/oauth/clients/4f57025a-c12b-43a9-8286-b374a4c5ade3/usage/query, followed by a "uncaught exception TypeError: Cannot read property 'executionId' of null Possibly unhandled rejection: {}".
It seems something is failing there possibly affecting the deletion attempt of the OAuth client using the Java SDK as well.
Same error appears using the Developer Tools.
{
"message": "Clients that are not inactive cannot be deleted.",
"code": "cannot.delete.client",
"status": 400
}
For the short term you can GET the oauth client with this:
/api/v2/oauth/clients/{clientId}
Then change the state to Disabled and use the same route to PUT it back
At that point you should be able to delete it. We are talking internally about what changed with this behavior.