delete tmp when register is complete