Cleaning large sketches

I was hoping to find a way clean DXF/DWG files when i import them in as a 2D sketch.

I tend to have to import files that have thousands of line segments that cause all sorts of drama, as 99% of the time i dont need that much detail i was hoping there might be a way of deleting all line segments less than a certain length?

This would take out 90% of the line segments that just aren't necessary for my work.

SolidworksGeneral