I deleted the table data, but it is deleted from DB, but the table is still there

If you click the delete button in the table or open the delete modal window to proceed, the DB table is deleted, but the deleted data is not imported from the table and remains as it is.

I tried using the event handler on success, but it doesn't work.

Any workaround?

Hi @jungsu! What query is running when you click your delete button? A screenshot would be great :slight_smile:

Are you seeing the row get deleted in your DB table if you check your DB directly?

I am using retool's function rather than query.

The function of the delete record works fine and the data in the table is cleared normally.

I tried using the event handler success to refresh the table as well because the data was deleted, but it doesn't work...

You only need to press f5 to see the table without the deleted data.

What should I do?

I think you can create a debounce on the success event handler (probably 1.5 secs) and then run the query on your table again. I believe the event Control Component>Refresh data from a table is different from running your query again.

thank you
I've solved the problem.