delete unnecessary data in csv and log file format