lynx.Diagram.remove_block

Diagram.remove_block(block_id: str) bool[source]

Remove block from diagram and all connected edges.

For IOMarker blocks, automatically renumbers remaining markers of the same type to maintain valid sequence (0, 1, 2, …, N-1).

Parameters:

block_id – Block identifier

Returns:

True if block was removed, False if not found