San Francisco coach Kyle Shanahan said linebacker De’Vondre Campbell won’t be part of the 49ers moving forward after he refused to enter a game after losing his starting job.

Shanahan said the team is still working through the options of how to deal with Campbell, who walked to the locker room in the middle of a 12-6 loss to the Rams on Thursday night when he refused to enter the game.

“His actions from the game are not something you can do to your team or teammates and still expect to be a part of our team,” Shanahan said Friday. “We’re working through the semantics right now, but we’ll handle the situation appropriately.”

Shanahan said Campbell won’t be part of the team for the final three weeks. Teams have the ability to suspend players up to four games without pay for conduct detrimental to the team, according to the Collective Bargaining Agreement. The Niners also could just waive Campbell outright, which would allow him potentially to be claimed or signed by another team.

Campbell signed a $5 million, one-year contract with San Francisco in March.

Campbell had started 12 of the first 13 games of the season and played 90% of defensive snaps for the 49ers but was benched Thursday night after Dre Greenlaw came back for his first game since tearing his left Achilles tendon in last season’s Super Bowl.

When the 49ers wanted to put Campbell in the game in the third quarter because Greenlaw was sidelined with soreness in his Achilles tendon, Campbell refused, something Shanahan said has never happened to him in his time as a coach in the NFL. Shanahan said Friday that he has not gotten any explanation from Campbell on why he didn’t play.

Campbell then walked off the field with a towel draped over his head and went into the locker room before the end of the game with the Rams that almost ended the 49ers’ playoff hopes. Shanahan said he didn’t send Campbell to the locker room and didn’t know why he left the field.

“Once I found out he wasn’t playing, I moved on to people we could count on,” he said.

Campbell’s decision left his teammates angered and bewildered.

“He’s a professional,” cornerback Charvarius Ward said after the game. “He’s been playing for a long time. If he didn’t want to play, he shouldn’t have dressed out. He could have told them before the game. So I feel like that was selfish. It definitely hurt the team. Dre went down and we needed a linebacker. ... For him to do that, that’s sucker (stuff) in my opinion. He’s probably going to get cut soon.”

Moss cancer scare

Pro Football Hall of Fame wide receiver Randy Moss said Friday he is being treated for cancer and is recovering from major surgery.

In an appearance on Instagram Live, Moss, aided by a cane, introduced himself as a cancer survivor and thanked his “prayer warriors” for their support.

Moss said a cancerous mass was found in his bile duct, between his pancreas and liver. He said he had surgery to put a stent in his liver on Thanksgiving and then underwent a 6-hour procedure about a week ago to remove the cancer.

“I didn’t think I would ever be in a position like this, as healthy as I thought I was,” Moss said.

Moss said he will undergo radiation and chemotherapy.

Notable

The Saints have decided to start second-year quarterback Jake Haener against the Commanders on Sunday. The decision indicates the Saints have deemed starter Derek Carr too injured to play this week. Carr was concussed and injured his left, non-throwing hand during the Saints’ 14-11 win last Sunday.

The Dolphins released wide receiver Odell Beckham Jr., ending the former Pro Bowler’s short tenure with the team. Beckham had missed the past two days of practice for what the team called personal reasons.

Jaguars tight end Evan Engram will have season-ending surgery to repair a torn labrum.

The Chiefs opened the practice window for wide receiver Marquise Brown, who has been on the injured list since hurting his shoulder in their preseason opener.