Yet another way, clone the object and remove the fill on the 1st object clear the line color. Select the top image and with shape editor, create a point somewhere on the section of the line you do not want, break point delete point. This will remove part of the line you do not want up to a corner point. Select the end point of the remaining section of the line and delete the point again. This removes the rest of the line up to the corner point. Select both shapes and group, finished.