use apractica; DELIMITER // CREATE TRIGGER ELIMINADO before DELETE ON datos_civiles for each row begin DELETE FROM datos_sensibles WHERE cedula=old.cedula; end // DELIMITER ; # recuerda poner el BEFORE Y el OLD.