Click to email this to a friend (Opens in new window)

Click to share on Twitter (Opens in new window)

Click to share on Facebook (Opens in new window)

Frank Underwood could get impeached from his own show.

Kevin Spacey will be written out of “House of Cards” amid sexual harassment allegations that have damaged the actor’s once-sterling reputation, according to a report on Friday.

Production of the political drama has been halted as writers scramble to rewrite the Netflix drama’s sixth and final season — perhaps with former President Underwood not in the script, sources told The Hollywood Reporter.

“They shut it down to figure out how to write him out,” a source told the Tinseltown trade mag.

Virtually the entire season had been written and two episodes shot when “Star Trek” actor Anthony Rapp came forward last weekend with sexual harassment allegations against Spacey from a 1986 incident. At the time, Rapp was 14 and Spacey 26.

Since then, more accusers — including employees on “House of Cards” — have come forward to say Spacey acted inappropriately.