She wrote: “TJ Miller was a bully and petulant brat and pretty much everyone who had any power on that (almost all male) set, including the male cast members, enabled him and were complicit in his unprofessionalism. They can f*** off forever.”

Miller, who played one of the lead characters Erlich Bachman on the show, left Silicon Valley in 2017 after four series.

The comedian and actor, also known for Deadpool, has since been accused of sexually assaulting a woman while he was in college, an allegation which he denied. Miller was also arrested in April for an alleged fake bomb threat.

HBO released a statement saying: “While this is the first time we have heard Alice Wetterlund comment on her experiences on Silicon Valley, we are disappointed to learn of her concerns.

“HBO and the producers have always taken very seriously our responsibility to create a welcoming and congenial environment for everyone who works on the show.”