Delete data from tables in the dashboard and update in sqlite

Hey all,

I have a problem for 2 days. I have to do a project to send to an internship. But I don't know about html though, I design IoT monitoring and show data in table on dashboard. My feature is when deleting it can showing on the dashboard but it doesn't really delete the value in the database. I don't know how to write the function table and don't understand where to start. I want to got some return value and when I press the delete button, it will also delete in the database and also shows off in my table on dashboard.
Please help me T.T

My table on dashboard.

My problem is in this section.

Here is my flow.
flows_IoT.json (34.0 KB)