How to reduce log?

how to automatically delete the log?

Is use of the linux logrotate mechanism available to you? If so, that will help reduce log files at an interval you choose.

on linux there are few logs, on the windows client there are a lot of logs in the picture. How to delete them automatically?