When you link the blocks:
var link = someSourceBlock.LinkTo(someTargetBlock);
you will get a return value that implements IDisposable .
To kill a link, simply remove this return value:
link.Dispose();
See the .LinkTo documentation (specifically the return statement section):
Return value
Type: System.IDisposable
An identifier that, after calling Dispose, will disconnect the source from the target.
source share