When you create a foreign key constraint, you can specify ON DELETE CASCADE (or UPDATE). This means that if any row is deleted in the parent (referenced) table, the delete will also occur for any records which contain that key in the child (foreign key) table.