No one can stay outside the country more than six months then try to enter the country without a valid residency visa. Therefore, you do not have to come all the way to cancel your visa as it is automatically cancelled if you stayed outside the UAE for more than 6 months.