Every slab is different. The answer is: As much as necessary to get to rock.
What you are removing is called laitance. It is a negative result of too much water being added to the concrete pour. To get an idea of how much laitance your slab has, you can take a heavy duty flat head screw driver and try to dig the head of it into the slab by putting ALL OF YOUR WEIGHT on it while twisting the screwdriver into the surface of the slab. The deeper you can go into the slab, the more grinding you will be doing and more dust you will be creating. If your slab is hard and it is difficult to create powder or go deeper than a millimeter, then you have a solid and sound concrete slab which will result in less dust upon grinding and a better bond to the epoxy.
It is critical to remove ALL of the laitance on the surface of the slab. Coating over laitance is like coating over brittle chalk, when you apply weight on it, the chalk below will crumble and the epoxy will pop up in sections with brittle concrete stuck to the bottom of it.
Over grinding is better than under grinding.
Best Luck!