How to delete jsPlumb connection

GigaPr picture GigaPr · Jul 15, 2012 · Viewed 15.5k times · Source

I am playing with jsplumb, but I am not able to delete the connection between two divs having only the id of one div.

Answer

Rafik Bari picture Rafik Bari · Jan 31, 2018

To delete a connection use the following code:

jsPlumb.deleteConnection(con)

For some reason, detach did not work for me. The method above is not mentioned in their docs, probably they forgot to correct their docs.