That is the correct way to do it
I’m guessing you’re currently using a mask, which hides a section in your art program - but it’s still actually there. The option, if you want to keep it as a vector, is to physically cut off the lines of code (via node editing).