I have created multiple lines in Phaser 3 and now need to remove them. I am mainly searching for a way to delete them entirely instead of just making them invisible. The code I have used to create the lines is below:
graphics = game.add.graphics({ lineStyle: {width: 4, color: 0xa9a9a9 } });
line = new Phaser.Geom.Line(100, 100, 200, 200)
graphics.strokeLineShape(line)
Thanks