The San Francisco 49ers will release Torrey Smith.

Smith signed a five-year, $40 million contract with the 49ers in 2015. Smith will leave with $16 million for two seasons, leaving a cap charge of $4.8 million.

The move also would avoid a $6.5 million salary for 2017 (it would become fully guaranteed on April 1), a $375,000 roster bonus, and a $1 million workout bonus.