PURGE MASTER LOGS
SyntaxPURGE MASTER|BINARY LOGS TO binlog_name PURGE MASTER|BINARY LOGS BEFORE date
MASTER
and BINARY
are here synonyms.
This command is used to delete all binary logs strictly prior to the
specified binlog or date, see section 4.10.7 SQL Commands Related to Replication.