How to delete all records in a table based on selected record from another table

maybe you should look at your previous post, the solution is the same