Drinking at least 8 glasses of water per day helps the liver flush out toxins and improves overall liver function. Limiting the intake of caffeine, alcohol, and carbonated drinks is also beneficial.