Dax Shepard revealed he was fired from “Will & Grace” as he chatted with his longtime friend Sean Hayes on the latest Armchair Expert podcast.

Shepard, 43, described the axing as the “only firing experience of my life.” However, he insisted: “I’m fine with it now. It was an interesting feeling to get fired.”

He told Hayes, who stars on the Global show: “The only thing I cared about is that you and I were involved. Had it been any other thing with a bunch of strangers, I would have been like, ‘Oh, whatever. I was at a table read for 45 minutes and then I got fired. Who gives a s**t?’

RELATED: Sean Hayes Appears To Throw Shade At Madonna, Jokes About Singer’s ‘Will & Grace’ Appearance

“The only thing is there was no anonymity to it for me. I knew many of the people at that table read. I think maybe that was the only element that I was like, ‘Well, that’s kind of embarrassing. These are people that I know, and then I got canned.’”

Hayes insisted he “almost doesn’t remember” the incident because he’d chosen to “block it out.”

He shared, “It was horrible that it happened… I can’t believe they fired you.”

RELATED: Sean Hayes Talks That ‘Will & Grace’ Megyn Kelly Interview, Admits Host’s Controversial Comments ‘Struck A Little Chord’

Shepard added, “That’s the only time in being friends in 12 years that I feel like, ‘Oh my God, I feel like something is awkward between us.’”

Shepard was replaced by Nick Offerman on the hit TV series. Offerman is married to Megan Mullally, who plays Karen on the show.