You can create batch file for log delete and schedule it.
As a best practice, you should monitor space usage on your server. If you need to make more space available, you can use the
tsm maintenance cleanup command to remove Tableau Server log files, temporary files, and rows from the
http_requests table of the Tableau Server PostgreSQL database.