In the sidebar, select "change or delete". Select "Change partner" and then "set no current partner". If the partners have children, then you'll have to either change their parents or delete them if you want to remove the line between the partners. Once the children have been transferred to one parent or deleted, "Change or delete", "remove ex-partner ...".