Elon Musk said he’s terminating his $44 billion agreement to acquire Twitter Inc. and take it private, triggering a legal fight with the company.

Twitter has made "misleading representations” over the number of spam bots on the social network, and hasn’t "complied with its contractual obligations” to provide information about how to assess how prevalent the bots are, Musk’s representatives said Friday in a letter to Twitter as part of a regulatory filing.

Twitter said it will fight back in court.