Here is an example of the terminal commands to clear error logs and access logs. Remember to update the file paths to the location of your error/access log/s.
sudo bash -c ‘echo > /var/www/html/logs/error.log’
sudo bash -c ‘echo > /var/www/html/logs/access.log’