You do not need a trigger for this. You can use a foreign key to delete ON DELETE CASCADE. This will automatically cascade the deletion to the dependent row if the foreign key target is deleted.
, , , ON UPDATE CASCADE. , .
, , (/ Interbase 6):
CREATE TABLE T1 (P1 INTEGER NOT NULL PRIMARY KEY);
CREATE TABLE T2 (F2 INTEGER REFERENCES T1(P1)
ON UPDATE CASCADE
ON DELETE CASCADE);