disable foreign key check when delete code example Example: disableforiegn key check SET FOREIGN_KEY_CHECKS=0;