Skip to main content

Home > blockly > ConnectionDB > removeConnection

ConnectionDB.removeConnection() method

Remove a connection from the database. Must already exist in DB.

Signature:

removeConnection(connection: RenderedConnection, yPos: number): void;

Parameters

ParameterTypeDescription
connectionRenderedConnectionThe connection to be removed.
yPosnumberThe y position used to find the index of the connection.

Returns:

void

Exceptions

{Error} If the connection cannot be found in the database.