Replication : Delete from Master Database
set sql_log_bin=0;
&lt;delete_query&gt;;
set sql_log_bin=1;


That should take care with the delete on master and will not replicate to the slave.

I'd recommend against this though. I think it's better to transfer data older than 5 years to a separate table then drop the table from the master side and retain the one on the slave.