it's impossible to keep all thoughts from your mind.
meditation is having focus on an anchor like breathing so you are aware of the thoughts that occur.
im not saying there's a wrong way to meditate, i just don't want people suffering to try the impossible and feel they have failed.
being aware you are lost in thought is a huge success.