Boiled vegetables have relatively few nutrients and lack important nutrients such as protein and fat. If you only cook with water, you may feel hungry and tired, and malnutrition may occur.
If you want to lose weight through diet, I suggest you take a more comprehensive approach. This means that you should eat enough protein, fat and other important nutrients, and avoid too much sugar and processed food.