How to remove extra strokes outside the boundary in GLYPHS

Files sliced (after AI slicing) with extra storkes remined outside the boundary. How to quickly remove them with one click of some script or anything in GLYPHS. thanks

You can right-click a background image and select Set Crop to Layer Bounds.

Are those extra, leftover paths?

You can try to select all (Command+A) and then drag over the visible paths while holding the Shift key. That leaves all extra paths selected so you can easily delete them.

I don’t think there is a script to do this. But it should be possible to write a script to do that.

thanks. I found the solution. In coredraw, Macro has a file converter that can remove all extra strokes with one click, amazingly. Thousands of files fixed in few seconds.