Skip to main content

Disconnect

Disconnects from Google's Gemini API and releases the connection resources.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Inputs

  • Connection Id - The connection ID obtained from the Connect node that should be disconnected.

How It Works

The Disconnect node releases the connection resources for a Google Gemini API connection. When executed, the node:

  1. Validates the provided connection ID
  2. Removes the client associated with the connection ID from the internal store
  3. Frees up any resources associated with the connection

Requirements

  • A valid connection ID from a successful Connect node execution

Error Handling

The node will return specific errors in the following cases:

  • Empty or invalid Connection ID

Usage Notes

  • This node is used to explicitly release connection resources
  • Connections are automatically cleaned up when a workflow ends, but explicit disconnection is recommended
  • Once disconnected, the connection ID cannot be used for other Gemini operations
  • This node doesn't have any output variables