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
| Parameter | Type | Description |
|---|---|---|
| connection | RenderedConnection | The connection to be removed. |
| yPos | number | The y position used to find the index of the connection. |
Returns:
void
Exceptions
{Error} If the connection cannot be found in the database.