How do I remove a row from a table?

Hi! My Javascript is pretty weak and I've been building a list pull tool out of help/examples but I'm a bit stuck. This tool gets a list of X values from the database. It then writes back to the database to indicate which values have been selected by the user.

So, in Retool I have a table that I populate with a query. Easy. I've made it such that people can multi-select rows in the table. When they are ready, they can click a button to write back to the DB to indicate the date on which those rows were chosen. Previously chosen rows are excluded from future list pulls.

My users report that rather than selecting the rows they'd like to choose, they'd like to choose everything in the list pull except some selected rows. I figured that I'd add a "Remove" button to my table in Retool that would pop undesirable rows in the table before the DB write but I cannot figure out how to do that. I assumed that this would be a very straightforward included function in Retool. :sweat_smile:

Are there any patterns I can use to do this?