The Upper East Side clinic that allegedly botched Joan Rivers’ throat procedure just before she died will lose its federal accreditation — and funding — at the end of this month, regulators said.

Yorkville Endoscopy, beginning Jan. 31, “will no longer be eligible to receive federal funds for services provided to Medicare and Medicaid beneficiaries,” according to a notice from the Department of Health and Human Services.

The loss of federal accreditation doesn’t necessarily mean the clinic will close. Doctors there can still treat patients with private insurance.

The comedian wanted a scope of her vocal cords to find out what was causing her hoarseness and discomfort.

While she was unconscious under anesthesia, Yorkville medical director Dr. Lawrence Cohen and Rivers’ ENT specialist, Dr. Gwen Korovin, went a step further and took a biopsy of a polyp on her vocal cords.

During this extended procedure, the “Fashion Police” host didn’t get enough oxygen to her brain and went into cardiac arrest, investigators have said.