Legacy Dev Forum Posts

 View Only

Sign Up

Cannot delete OAuth Clients

  • 1.  Cannot delete OAuth Clients

    Posted 06-05-2025 18:18

    ngiannopoulos | 2021-02-03 12:46:07 UTC | #1

    Hi,

    Currently, we cannot delete any newly created OAuth clients on both Java SDK or Genesys UI.

    1. Using Java we receive "clients that are not inactive cannot be deleted" although the clients are not used at all.
    2. 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?

    Thank you, Nikos


    ngiannopoulos | 2021-02-03 12:52:38 UTC | #2

    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.


    ngiannopoulos | 2021-02-03 14:32:51 UTC | #3

    Same error appears using the Developer Tools. { "message": "Clients that are not inactive cannot be deleted.", "code": "cannot.delete.client", "status": 400 }


    Jason_Mathison | 2021-02-03 14:51:33 UTC | #4

    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.

    --Jason


    ngiannopoulos | 2021-02-03 15:16:00 UTC | #5

    The workaround works. Please respond here once the issue is resolved thank you.


    Jason_Mathison | 2021-02-03 15:37:54 UTC | #6

    This change in behavior should be rolled back within the next couple of minutes.


    Becky_Powell | 2021-02-03 15:46:29 UTC | #7

    This behavior change has been rolled back.


    ngiannopoulos | 2021-02-03 15:54:25 UTC | #8

    I can confirm the OAuth client deletion is back to normal through the Java SDK which was the case for us. FYI the bug on the UI still exists.


    system | 2021-03-06 15:57:21 UTC | #9

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 9883