remove logs from file