When you need to purge binary logs on a MySQL server, you just need to connect to your server and use the PURGE BINARY LOGS command like this : For example : Will purge all the binary logs before the date. Other method is to purge log file on « name » attribute of the log file. …