How do you stop a Ford Focus from pinging?

Run a tank of high octane through it or add a bottle of octane boost, I did this 4 months ago and have been able to run 87 octane in it and the ping has not returned yet.