FIDE titles are for life, unless it gets stripped for ethical reasons.
Edit: There are 1,555 GMs and 3,623 IMs in the rating lists
Do they lose that status if they don't play any more ' recognised games ' ?