Best practices for cleaning a machine that has gotten a decent amount of buildup

Best practices for cleaning a machine that has gotten a decent amount of buildup in the water tank?

In the past after cleaning the tank, I flushed the system by circulating white vinegar for a few hrs. Flush it multiple times with clean water after the vinegar.