Michael Avenatti switched his Twitter account to private Thursday morning, blaming “the dirtbags” who’ve trolled his supporters in wake of charges that he tried to shake down Nike for $20 million.

The embattled lawyer’s feed is now only visible to his more than 858,000 followers.

“Seeing as many people don’t know how to act with any level of decency and have now resorted to attacking people on my feed that follow and support me, I’m marking my account private for now,” he tweeted. “The dirtbags can go spew their noise on their own feed (with their 4 followers).”

Avenatti — who shot to fame for representing porn star Stormy Daniels in her legal war against President Trump — is facing federal extortion charges for allegedly threatening to “release damaging information” about the sneaker giant unless it coughed up cash, prosecutors said.

The 48-year-old was arrested Monday on charges in a pair of complaints filed in Manhattan and California.

In non-stop tweets, he has accused Nike of “crime & coverup” and said he was confident he would be exonerated.

He has claimed he has evidence that high-ranking Nike employees illegally paid college basketball players and their families.