He got cold feet.

A celebrity hairstylist who sued his ex for allegedly faking their million-dollar wedding is walking away — claiming he can’t afford the litigation.

William Jordan Blackmore sued auto dealer scion Andi Potamkin in May, accusing her of purposefully orchestrating a non-binding ceremony so she wouldn’t have to honor their prenup.

Yet Blackmore on Thursday told a Brooklyn federal court judge he no longer wanted to pursue the $2 million lawsuit and asked that it be dismissed.

“Pursuing this litigation to its conclusion will require Mr. Blackmore to expend inordinate personal and financial resources, depleting his already limited assets and eroding his ability to rebuild his life in the foreseeable future,” his lawyer writes.

“Rather than continue to pursue his claims against the Potamkins, Mr. Blackmore wishes to voluntarily dismiss this action so that he may devote his time and limited means to rebuilding his business and personal life,” the attorney says.

Chief Judge Dora Irizarry dismissed the suit.

The request comes after Potamkin and her father accused Blackmore of making a cash-grab and produced emails showing he knew their lavish ceremony wasn’t legally binding.

Attorneys for Potamkin did not immediately return a message.