How to delete all rows that have the same name with a button

Hey there community! hope that all of you are good :smiley:

I have a question about buttons, I would like to press the delete button in the example table and automatically delete all the rows in the New Table that have the same name of the first table. So for example, if I press Delete in the first table, first row. All the first three rows of the second table should be deleted. I’m still triying to figure it out but any help would be fantastic.

Hint: you can add a column to the first table that shows all the matching rows from the second table.

(New column → Referenced by → New table:Name)

Hey! Thanks for the answer, I didn’t find how to do it by referencing the name but I found the soution in this post. Thanks for the hint anyway :slight_smile: