Removes tmp and log files