To remove previous query profiles set @@profiling_history_size=0
. The following snippet clears the profiles, sets the history to its maximum size and enables profiling
SET @@profiling = 0;
SET @@profiling_history_size = 0;
SET @@profiling_history_size = 100;
SET @@profiling = 1;
Tested on 5.6.17