Bella Thorne has revealed that she almost got kicked out of her show on Disney Channel when a photograph of her in a bikini made the rounds on the internet when she was 14.

"One time I almost got fired off the Disney Channel because I was 14, and I wore a two-piece on the beach," the 25-year-old actress and model said on Tuesday's episode of Emily Ratajkowski's "High Low with EmRata" podcast.

Thorne also recalled how she felt when her photo went viral, saying, "There was a fan, they got a photo of me on the beach. I almost got fired. It was all over the media, it was literally viral in that time. It was, 'How dare this little girl do this? This is so disgusting.'"

It can be recalled that Thorne starred with Zendaya on Disney's "Shake It Up," which ran for three seasons from 2010 to 2013. In the show, they portray Chicago teens who dream of becoming professional dancers and later get a spot on a popular talent show.

During the interview, Thorne also shared that as her bikini photo went viral, people were "putting Disney under pressure" to fire her from the show. However, Disney did not give in to the pressure.

"They were like, 'Hey, we're getting a lot of heat for this. Everyone's getting heat for this because you're in a bikini on a beach, so she needs to make sure she goes out in boy shorts and a loose t-shirt next time she's at the beach,'" she said.

The actress also talked about how she lost a role at age 10 after a casting director accused her of flirting with him.

"I had a director give me feedback once and I was 10," Thorne recalled. "The casting director calls my agent and the agent calls my mom, and they're like, 'So she's not moving forward because the director felt like she was flirting with him, and it made him really uncomfortable.'"

She added, "What the f--- are you talking about, man?! I don't care if I said, 'Eat my pussy right now!' She is 10 years old. Why ever would you think that?"

Ratajkowski chimed in, saying, "Also him feeling that it was a real issue."

"Also, you're in a director session," Thorne said further. "You can't really say or do much. You do the scene, you say hello, you walk out. There's no time to like, lemme go sit on your lap or make you feel uncomfortable. What the f--- are you talking about, man?"

Bella Thorne
VENICE, ITALY - AUGUST 31: US actress Bella Thorne walks the red carpet ahead of the "Joker" screening during the 76th Venice Film Festival at Sala Grande on August 31, 2019 in Venice, Italy. (Photo by Franco Origlia/Getty Images) Photo by Franco Origlia/Getty Images