Canvas deletes a line

I want to draw multiple lines in canvas, and then click on one to delete it. How to achieve

most easily?
May.22,2021

record the line in an array, and
figure out which line it is by mouse click position.
Delete this line data and redraw.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e50668-4c7b6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e50668-4c7b6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?