If you encounter a bug where all the re-established connections of a deleted div going to the top left of the screen: at the moment there’s no better solution than to delete all connections and repaint everything.
I’m using jsPlumb community version with React.
Sadly, merely deleting the related connections or endpoints won’t work.
To re-paint everything afresh, use:
jsPlumb.reset();
After you re-establish all the connections, if it’s necessary to make sure that they are in their right spots, call:
jsPlumb.repaintEverything();