Sell them when you have players to replace them. When they become little or no use to you and the money spent on their salary is a waste you should sell them. But if you are thinking od selling them to hope to find a replacement in a rsik as you might not find a better player for a decent price.
Some teams do very well with older players only.