Hosting Magento1/2 websites on your server, its important to keep monitoring the diskspace used by unwanted tables in Magento1/2. Running magento_db_optimize script gives the list and size of unwanted database tables used by Magento websites hosted on the server.
Built based on cPanel server architecture
Clone the repo
Open the script, update "HTTP_CONF" in the script to the path of your web server configuration.
Define the table threshold size at "SIZE"
BSD