I have two shape files with lines: one has 41k+ lines and the other has 606 lines. Lines from these layers often overlap. I want to use the second one as a mask to clip lines from the first one so I have a layer with around 40,5k with overlapping features deleted. I have tried "Difference" and "Symmetrical difference" operations in QGIS but they didn't work for me. How can I do it then?