How to delete jsPlumb connection

javascript, jsplumb

Solution

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.

Problem

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

Original source