Remove expired channel numbers when writing a channel