delete first, check for orphans later