Gillian Anderson is finished with The X-Files, the actress confirmed Wednesday during a panel organized as part of the Television Critics Association's winter press tour. Anderson said that she originally intended to sign on for the six-episode revival in 2017. She also confirmed that she's walking away from Starz drama American Gods after showrunners Bryan Fuller and Michael Green were fired from the series after clashing with producers Fremantle over budget and the show's creative direction, sources tell THR.

"It's time for me to hang up Scully's hat. It just is," Anderson told reporters, ruling out any potential return in the future. "I'm finished, and that's the end of that."

As for American Gods, she said: "I'm not doing any more American Gods. Bryan and Michael Green aren't either, as has been announced." Fuller and Green were pushed out of the series after clashing with producers Fremantle over the show's season two budget.

As for X-Files, "I arrived at the decision before we did the previous six, but I was really curious. I felt that the previous six was going to be it. It was dipping our toe back in again ... and getting to play these wonderful characters again," Anderson said. "I think as [series creator] Chris [Carter] has said himself, that short stack of episodes felt like we were learning how to walk again and that this season of 10 feels like the pace is up and we're running."

She added, "I wouldn't necessarily have been happy if those six were how we said goodbye. ... There's lots of things that I want to do in my life and in my career and it's been an extraordinary opportunity and extraordinary character and I am hugely grateful."

For his part, co-star David Duchovny told reporters he would be "good either way" if the show continued without Anderson or if it ended after the current season.

"I've tried to say goodbye to Fox Mulder many times and I failed. And they all went and did the show without me, so how do you like that? I'm feeling pretty pissed off, now that I remember," Duchovny joked.

The X-Files ran on Fox from 1993 to 2002, and returned to Fox for a six-episode tenth season in 2017, billed as a limited event.

“I’ve said from the beginning this is it for me," Anderson told TV Guide Magazine ahead of the 11th season premiere. She had told fans at New York Comic Con last year that she was finished but reiterated her statement to the magazine. "I was a bit surprised by people’s [shocked] reaction to my announcement … because my understanding was that this was a single season."

X-Files executive producers Darin Morgan, Glen Morgan and James Wong were on hand to discuss the 11th season and upcoming episodes, which they wrote and directed. While the longtime collaborators penned and helmed episodes solo this season, they also welcomed collaboration.

"When we first started The X-Files, there was no such thing as a traditional writers room that we understand as it exists now, and I think in this particular 10 episodes we tried to include things we've done recently in new shows," Wong said. "At the end of the day, since we all directed the episodes that we wrote, mostly, we didn't have a chance to really have a traditional writers room, but we did give notes to each other and comment and were involved."

Lesley Goldberg contributed to this report.