remove tmp and log