DELIMITER //

CREATE TRIGGER `after_test_flow_delete`
AFTER DELETE ON `test_flow`
FOR EACH ROW
BEGIN
    DELETE FROM `test_flow_tags` 
    WHERE `test_flow_id` = OLD.`ID`;
END //

DELIMITER ;
