If it’s straight lines you want then I would select all nodes between the ends and delete, then click on curved line that’s left and turn into a straight one.
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.