Syntax:
RESET MASTER

Deletes all binary log files listed in the index file, resets the
binary log index file to be empty, and creates a new binary log file.

*Warning*:

Use this statement with caution to ensure you do not lose binary log
file data.

RESET MASTER also clears the values of the gtid_purged system variable
as well as the global value of the gtid_executed system variable (but
not its session value); that is, executing this statement sets each of
these values to an empty string (''). In MySQL 5.7.5 and later, this
statement also clears the mysql.gtid_executed table (see
http://dev.mysql.com/doc/refman/5.7/en/replication-gtids-concepts.html#
replication-gtids-gtid-executed-table).

URL: http://dev.mysql.com/doc/refman/5.7/en/reset-master.html

