1 If you tend to form calcium oxalate stones, your doctor may recommend restricting foods rich in oxalates. 2  These include rhubarb, beets, okra, spinach, Swiss chard, sweet potatoes, nuts, tea, chocolate and soy products.