Gary Illyes of Google posted on Twitter that you should keep a redirect live for a year for Google Search purposes. The signals from original page A to destination page B will all be transferred and stick with page B even after the redirect is removed, if that redirect is live for a year.