A New York judge has granted Kesha (photos)'s request to seal her medical records.

The judge said the order was "to protect the privacy of defendant Kesha Rose Sebert, to insulate her from unnecessary embarrassment and to protect her medical providers from the press and the media."

It was a response to a request by Kesha's attorney because the singer provided more than 900 pages of records to the court including gynecological, psychiatric, and rehab records going back a decade in her legal battle with music producer Dr. Luke.

"Her position as a world-renowned recording artist in whom there is great public interest renders any potential disclosure of those records potentially harmful to her personal and economic interests," said her lawyer.

Her attorney said Kesha "fears that Gottwald will seek to disclose and disseminate her personal medical records in an attempt to embarrass and harass her, and she seeks the entry of a protective order precluding him from doing so."

It's reported Luke didn't agree to the assertion and claimed he had a right to use the records "without condition."