Correct me if I'm wrong but what I think you mean to say is "How do I do a "gravel vac" in a planted tank?
If so, then the usual procedure would be to give a good deep vac to areas where you have no plants or plant roots, but where you do have roots or plants themselves, you only very gently...