LiteSpeed logs makes 100% SSD usage

HI, i am using CyberPanel on Google Cloud Platform,
but i am facing 100% disk usage with every two days.
i had to perform this command
sudo rm -rf /usr/local/lsws/logs/*
To delete LiteSpeed logs,
My SSD space is 50gb, website is using 20% disk space. but this huge LiteSpeed logs makes disk full with every days.
ones, i delete this logs, disk become normal ones again.

i want to disable this logs,
how can i do it?

You can make a cron task to remove them automatically everyday. Disabling log is not a good choice. But you can do it by editing php.ini and openlitespeed control panel.

Type your comment> @jobayer said:

You can make a cron task to remove them automatically everyday. Disabling log is not a good choice. But you can do it by editing php.ini and openlitespeed control panel.

can you plz, give me step by step info. i dont know how to do it

login your server as root using putty or terminal from panel

  1. create file delete_log.sh
    paste following command
    rm -rf /usr/local/lsws/logs/

make it executable: chmod +x delete_log.sh

edit cron file: EDITOR=nano crontab -e

paste below code at the end of the file
0 23 */2 * * /root/delete_log.sh > /dev/null 2>&1

Note: it will delete logs folder everyday.

Type your comment> @jobayer said:

login your server as root using putty or terminal from panel

  1. create file delete_log.sh
    paste following command
    rm -rf /usr/local/lsws/logs/

make it executable: chmod +x delete_log.sh

edit cron file: EDITOR=nano crontab -e

paste below code at the end of the file
0 23 */2 * * /root/delete_log.sh > /dev/null 2>&1

Note: it will delete logs folder everyday.

Is this method still work?