The judicial vicar, adjutant judicial vicars, and other judges are appointed for a definite time, without prejudice to the prescript of can. 1420, §5 and cannot be removed except for a legitimate and grave cause.
Source: Code of Canon Law (Vatican.va)