delete tmp dir and change file name format