This is my first table it has 3 columns and all are entered by the user. No complication and it works
You have added an INSERT
trigger. This raises an error if you try and insert a row that doesn't match the constraint specified in the trigger; it does nothing about deleting rows from one table when rows from another are deleted.
You need an AFTER DELETE
trigger on the first table which deletes the corresponding rows.