Hard to tell what you're asking, because it looks like you have it all working well.
Im asking how can I auto delete the line or trap if 1. it doesnt connect to make a full trap and 2.it does connects and makes a full trap , but no enemies are inside. That's why I posted the pics so people could get an idea of what im talking about or trying to achieve.
Have you looked at an overlap condition for when the tiles turn blue? If the enemy is overlapping do x, if not do y?
That's what I already have for event 27. If the enemy is overlapping the blue tile when its trapped, destroy enemy and it deletes the trap, setting the tilemap normal. I got that down. What im trying to do is make the lines or trapped auto-delete if 1. line doesn't connect to make a trap and 2. If it does, but no enemy is inside, delete the tilemap/erase tilemap. that's what im having trouble trying to figure out.