The impact of the InGaN growth temperature and of the trimethylindium flux on trench defects has been investigated. We show that the density of defects is affected by both conditions but also their morphology and their emission properties. Therefore, the impact of such defect on the performance of quantum well structures can be controlled by adjusting these two growth conditions. Under usual conditions for making blue light emitting diodes, we observe that the enclosed region of the defect emits light at a longer wavelength. Nevertheless, our data also demonstrate that emission at a shorter wavelength is possible under certain growth conditions.