SHOW MASTER LOGS
Lists the binary logs on the master. You should use this command before using PURGE MASTER LOGS to find out how far you should go.
PURGE MASTER LOGS