I am playing with jsplumb, but I am not able to delete the connection between two divs having only the id of one div. If you've multiple connections from or to elements, detaching all connections is maybe not the best solution to delete a connection.