ETLMCPData Conveyance Works
Log in Start free
Docs

What happens at the platform when you remove a connection

Disconnecting deletes etlmcp's stored token, then revokes it at the platform only when no other connection still uses the same login.

When you disconnect a login, etlmcp deletes the connection and its stored token, then asks the platform to withdraw the token. That second step is best effort, and etlmcp skips it whenever the same login is still connected elsewhere in etlmcp, so disconnecting here never cuts off another workspace, organization or platform that relies on the same consent. To be certain etlmcp has no access left, also remove its app in the platform's own connected-apps settings.

Sources come off first

A connection is the login you signed in with; the ad accounts, properties or stores you ticked under it are its sources. The Disconnect button on the Sources page refuses to remove a connection that still has sources. The request answers HTTP 409 with remove its sources first, and nothing is deleted.

Remove each source with its own Remove button first. Removing a source deletes its stored history, its pipelines, its runs and its exported files for good, and some platforms cannot serve older days again if you add the account back later. See deleting data for what goes and when.

Once the last source is gone, Disconnect deletes the connection row and the encrypted token in one database transaction. The revocation call happens only after that row is gone, so a failed or slow call to the platform can never leave the connection half removed.

When etlmcp asks the platform to revoke

After the row is deleted, etlmcp checks three things before it calls the platform:

  1. The platform has a revoke endpoint that etlmcp knows about, and etlmcp's app credentials for that platform are set on the server. In the code today, only the Google Ads and TikTok connectors declare one. The Meta, LinkedIn, Pinterest, Shopify, Microsoft Advertising, Snapchat and GA4 connectors declare none, so disconnecting them never makes a revoke call.
  2. No other connection in etlmcp, in any workspace or organization, holds a grant for the same platform login. The check also counts connectors that share the same revoke endpoint or the same etlmcp app at the platform. GA4 and Google Ads, for example, sign in through the same Google app, so a Google Ads login that is also connected for GA4 is left alone.
  3. For Google only: no Google Sheets destination, in any organization, is set up with the same Google account. The Sheets destination is coming, but the code already makes this check.

If the login is still in use, etlmcp logs that it did not revoke and stops. The check answers only yes or no; it tells your workspace nothing about who else uses the login.

When all three checks pass, etlmcp sends the refresh token to the platform's revoke endpoint, or the access token when there is no refresh token. TikTok gets its own call with the access token, since TikTok's guide says its long-term access tokens do not expire. Errors and refusals from the platform are logged without the token, by error type, HTTP status or the platform's error code, and are never shown to you: the disconnect has already succeeded by then.

Why etlmcp holds back

At some platforms, one revoked token withdraws the whole consent the person gave the app, not just that token. Google's OAuth guide for web server apps says that revoking a token for a combined authorization revokes all of its scopes for that user at once, and that revoking an access token also revokes the matching refresh token, if there is one. If etlmcp revoked every time, disconnecting Google Ads in one workspace could break the same person's GA4 connection or another organization's Google Ads sources.

Making sure access is gone

After you disconnect, remove etlmcp at the platform:

  • Google: in your Google Account, open the page that lists apps with access to your account, select etlmcp, open its details and choose to remove access. Google's help says the app can then no longer reach your account. This ends access for every etlmcp connection that uses that Google account, Google Ads and GA4 alike.
  • Meta: in your Facebook settings, open Business Integrations, select etlmcp under the active ones and remove it. Meta's help notes that a removed integration may keep information you shared while it was active.
  • Other platforms: use the platform's own list of authorized or connected apps.

Anything that still uses the login in etlmcp then needs reconnecting; see expiring connections for how etlmcp flags a connection whose access has ended.

Related

Sources

  1. Using OAuth 2.0 for Web Server Applications — developers.google.com, checked
  2. Manage links between your Google Account & apps from other developers — support.google.com, checked
  3. How do I edit the privacy and settings for my business integrations or remove them from Facebook? — www.facebook.com, checked
  4. Obtain a long-term access token — business-api.tiktok.com, checked