Terminal command to delete unnecessary logs
My guess is they want to sell you a paid cleanup product so this is the call to action.
- https://www.avast.com/cleanup
Instead of using a third party tool, I would first make sure you are happy with Apple recommendations on disk clean up.
- https://support.apple.com/en-us/HT206996
Your storage is likely SSD and the data stays written and only gets purged when needed by the OS so stale cache seems a misnomer and the same goes for log files. Those should rotate and Apple tools or Daisy Disk give me a much better idea where the space is used if I need to take action.
- How can I figure out what's slowly eating my HD space?
The terminal command I use to engage the clean up of stale files and secure, patch and update my Mac is
softwareupdate —-all —-install —-restart