Diuretics are used as a treatment for heart failure , liver cirrhosis , hypertension and certain problems with the kidneys . In medicine , diuretics are used to treat heart failure , liver cirrhosis , hypertension and certain kidney diseases .