update flag_colum by primary key when destroy record.