SAN FRANCISCO—After two seasons, the San Francisco 49ers have announced they will be releasing wide receiver Torrey Smith.

Former Florida Panthers and Baltimore Ravens wide receiver Steven Smith Jr.,  a former teammate of Smith’s and now a NFL Network analyst announced the news on Twitter.

In 2015, Smith, 28, signed a $40 million, five-year contract with the 49ers after a three-year career with the Baltimore Ravens. Smith’s salary was reportedly the highest to be issued by then-manager Trent Baalke. Spotrac reported that Smith received $16 million of the initial $40 million.

During his four seasons with the Ravens, he attained 213 catches in 3,591 yards and 30 touchdowns. At the start of his career with the 49ers, Smith had 33 catches for 665 yards and four touchdowns. Last season, he sat out the last four games due to a concussion after making 20 catches for 267 yards. He made a total of 53 catches for 930 yards in 28 games.

Smith accounted for approximately $9.5 million of the 49ers’ salary cap for 2017, which already contained $90 million worth of space. Smith’s departure opens up approximately $4.7 million.

Smith tweeted upon his release, “Don’t be surprised when I’m back on track next year…….”