There are different maintenance requirements for different types of water heaters. Check your manufacturer's recommendations and follow them carefully. However, in general terms, you'll want to drain sediment from your water heater tank on an annual basis and tankless water heaters will require at least an annual descaling to keep them operating efficiently.