# Revoke diagnostic app OAuth access without affecting my ERP

**URL:** <https://developer.squareup.com/forums/t/revoke-diagnostic-app-oauth-access-without-affecting-my-erp/28270>\
**Category:** Questions\
**Created:** [October 20, 2026, 2:55pm UTC](https://developer.squareup.com/forums/t/revoke-diagnostic-app-oauth-access-without-affecting-my-erp/28270 "2026-10-20T14:55:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfeich](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@jfeich](https://developer.squareup.com/forums/u/jfeich)\
**Post date:** [October 20, 2026, 2:55pm UTC](https://developer.squareup.com/forums/t/revoke-diagnostic-app-oauth-access-without-affecting-my-erp/28270/1 "2026-10-20T14:55:14Z")

</div>

Hello Square team,

I need to revoke the OAuth authorization for a diagnostic application I created, without affecting my separate ERP application.

The Dashboard refuses disconnection because this is a custom app created in the Developer Console. The diagnostic OAuth token is no longer available.

What is the supported procedure to revoke only this diagnostic app’s authorization? I still have access to its Developer Console.

If account-specific information is needed, please explain how to provide it privately.

Thank you.

---

<div class="post-metadata">

**Author:** ![helner-square](https://avatars.discourse-cdn.com/v4/letter/h/d9b06d/32.png) [@helner-square](https://developer.squareup.com/forums/u/helner-square)\
**Post date:** [October 22, 2026, 12:47am UTC](https://developer.squareup.com/forums/t/revoke-diagnostic-app-oauth-access-without-affecting-my-erp/28270/3 "2026-10-22T00:47:26Z")

</div>

Hello there

You can revoke the diagnostic app’s authorization using [RevokeToken](https://developer.squareup.com/reference/square/o-auth-api/revoke-token), even without the original OAuth token, by supplying the seller’s `merchant_id` instead.

For Production, run this locally using the diagnostic app’s application ID and OAuth application secret from the Developer Console:

```bash
curl https://connect.squareup.com/oauth2/revoke \  
-X POST \  
-H 'Authorization: Client DIAGNOSTIC_APP_SECRET' \  
-H 'Content-Type: application/json' \  
-d '{    
        "client_id": "DIAGNOSTIC_APP_ID",    
        "merchant_id": "SELLER_MERCHANT_ID",    
        "revoke_only_access_token": false  
    }'

```

Do not include `access_token` when using `merchant_id`. A successful response returns `"success": true`. This revokes that seller’s authorization for the diagnostic application. Your ERP application’s authorization is unaffected, provided it has a different application ID.
