How do i use worldListener, NotifyJointDestroyed

How do i use NotifyJointDestroyed to detect when a joint is destroyed so the userData sprite is also removed, rather than left behind? If someone could write out the script that would be brilliant, thanks.

Original thread: https://box2d.org/forum/viewtopic.php?t=735