While drawing lines specify it's color with alpha value
glColor4f(R,B,G,A)
"A" means alpha value and define the transparency ,if it is equal to 1 then complete Opaque and if 0 then complete transparent.
By changing the alpha value of lines,your problem will be solve.
After collision make alpha value equal to 0 then it will be transparent and seems like disappear.