Lifestyles changes
You might decrease the risk of having kidney stones if you:
Drinking plenty of water
For the people who are having the history of kidney stones, doctors normally suggest drinking a lot of fluids to eliminate nearly 2.1 quarts (2 liters) of urine each day. Your doctor might inquire you to measure the urine output to ensure that you are drinking sufficient amount of water.
Eat less oxalate-rich foods
If you mostly form calcium oxalate stone, the doctor might suggest you to stop taking foods that are rich in oxalates. These consist of beets, spinach, and rhubarb, sweet potatoes, and tea, black pepper, chocolate and soy products.
https://www.mayoclinic.org/diseases-conditions/kidney-stones/diagnosis-treatment/drc-20355759