delete temp_dir in process_temp