If this gives you a large number or percentage, you likely will want to purge these binary logs.

Purge and Prevent

If you want to purge the logs, you likely don't intend to have MySQL replication turned on, so you will want to turn off binary logging altogether. Please consult with your development team and system administration team before proceeding if you are unsure whether you need replication, however, replication is typically only used for highly customized, multi-server applications.

To purge the binary logs, which will free up all of the space which was shown in the "checking" command above, and also prevent MySQL from writing these binary logs in the future, you can run the following command via SSH as the "root" user:

The above command may take several moments to complete, depending on how large these logs have grown. Checking your available disk space now with the df -h command should confirm that your disk space issues are resolved, if the binary logs were indeed the primary culprit on your server.