To prevent any malfunction, the heater should be inspected and maintained every four to six months. Failure to do this results in the heater corroding quickly and formation of sludge which generally lowers functionality of the hot water heater. There are multiple ways to descale a hot water heater and clean it. They include:

Cleaning a hot water heater with vinegar

What you need

2 gallons of white vinegar.’Some water

Steps

Cleaning with Hydrogen Peroxide

What you need

1 to 2 pints of 3% hydrogen peroxide.Some water

Steps Check this too: Rinnai Water Heater Troubleshooting & How-to Guide

 Cleaning with Bleach

What you need

½ to 1 gallon of bleach.Tools to access the A420 anode rod.

Steps

Cleaning with CLR

What you need

A gallon of CLR ( Calcium Lime Rust) cleaner.

Steps Check this too: How to Vent a Tankless Water Heater