NULL out parent_id column prior to running delete to avoid foreign key conflicts