DALLAS (AP) — A California judge has dismissed a Twitter lawsuit against Texas Attorney General Ken Paxton in which the social medium accused the Republican of using his office to retaliate for Twitter’s banning the account of former President Donald Trump.

Twitter had imposed the lifetime ban following the Jan. 6 riot at the U.S. Capitol in which five people died. Days later, Paxton announced an investigation into Twitter and four other major technology companies for what he called “the seemingly coordinated de-platforming of the President.” The attorney general’s office demanded that the companies produce various records related to their content moderation policies and troves of internal communications.

READ MORE: North Texas Law Enforcement Disappointed In Gov. Abbott's Veto Of Domestic Violence Education Bill

Twitter responded March 8 with a federal lawsuit alleging Paxton is seeking to punish it for taking Trump’s account offline — a decision the social media company says is protected free speech.

In her Tuesday ruling, Senior U.S. District Judge Maxine Chesney of San Francisco ruled that Paxton’s administrative summonses were not “self-executing,” meaning that Twitter was not bound to comply with them absent a court order.

In her seven-page opinion, Chesney noted that Paxton had taken no court action to enforce his summonses and that Twitter was not bound to comply with them without court action. So, she dismissed Twitter’s suit, noting that its request for an injunction or court declaration against Paxton was premature.

READ MORE: Dallas County DA Reverses Plans To Seek Death Penalty For Alleged Serial Killer Billy Chemirmir

In a statement, Paxton said the lawsuit had been “little more than an attempt to avoid answering my questions about their large-scale censorship and content-moderation policies.”

In its own statement, Twitter said private companies have the same free-speech rights as do individuals. “In this case, the Texas Attorney General is misusing the powers of his office to infringe on Twitter’s fundamental rights in an attempt to silence free speech. The court’s ruling today did not conclude otherwise.”

The suit came as Paxton faces other legal challenges, including an FBI investigation into claims that he used his office to benefit a wealthy donor.

He is also awaiting trial on unrelated securities fraud charges dating back to 2015. Paxton pleaded not guilty, and the case has been stalled for years over legal challenges.

MORE NEWS: 'New Personnel & Procedures, Insufficient Oversight' Led To Texas Execution Without Media Present

(© Copyright 2021 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)