Skip to main content
This event is triggered whenever a user removes a connection. The registered handler runs before the connection is deleted, meaning that if the handler throws an error, the connection will not be removed. You can use the handler to perform any necessary teardown work.

Example

Here’s an example that cleans up a webhook handler.
TypeScript