I wanted to remove unnecessary logs automatically , like Xorg.log.0 , and other packed *.gz files , i really don't need that on a laptop system.
However , i checked
man logrotate , but only an entry called
shred , but irrelevant.
Removing old logs is the main job of
logrotate. The number of old log versions kept on your disk is set by the
rotate config option.
Also, take a look at the configuration files (
/etc/logrotate.d/*) as well as
man logrotate to see various ways how the rotation can be triggered (like
monthly or by size limit).