When you leave the UK, should you declare yourself non-resident, for tax reasons??

I've been gone many years now and wondering if I should have done that when I left.