What you can do is to set the Delete Rule of your foreign key to
. See here
] for steps on how to do it. What basically happens when you set it that way is that, when a record in table1 gets deleted, the corresponding record(through foreign key) in table2 will be deleted as well.