move purgeOrphans