You get the form off Canada Revenue Agency's website - it should come up on Google quite quickly if you type in Canada Government non resident tax form

The number of years abroad has nothing to do with it, it's whether the Canadian Governments recognizes you as non-resident and it determines that based on the form.

This has been the required procedure for the last 25 years that I know of.