Remove an existing connection to a 3rd party service
Custom Catalog Only
The
removeConnectionmethod should only be used if you are building a custom catalog experience. xkit-catalog.js already implementsremoveConnection.
Parameters
connectionQuery:string | { slug: string } | { id: string }
The query to identify the connection, an object with either aslugproperty (the URL Slug of the connector as configured in your Xkit dashboard, e.g.slack) or anidproperty (the unique ID of the connection).
It is deprecated to use just a string parameter, which is interpreted as the URL slug of the connector. If you're not using multiple connections, you should instead use disconnect.
Returns
Promise<void>
A Promise that resolves when the connection has been removed.
removeConnection removes an existing connection to a 3rd party service. This is equivalent to "uninstalling" or deactivating a connection.
await xkit.removeConnection({ slug: "slack" })
