Celebrity heiress Paris Hilton has been taken screaming from a Los Angeles court after being told to return to jail to serve out her sentence.
The celebrity heiress was ordered to attend the hearing rather than listen to the proceeding by telephone.
Hilton left jail on Thursday, just three days into a 45-day sentence for violating probation on a driving ban.
Her release from detention, on unspecified medical grounds, had sparked widespread criticism.
Hilton attended court to hear the case for her "reassignment" to house arrest.
She arrived in handcuffs and cried throughout the court session.
The judge said that she would have to serve her full 45-day sentence.
"It's not right!" she shouted in response, before calling out to her mother, who was at the court.
Hilton will stay for a few days at a treatment centre at Twin Towers jail in LA for medical and psychiatric examination to determine which jail she will be sent to, sheriff spokesman Steve Whitmore said.
LA county sheriff Lee Baca defended his earlier decision to release Hilton on medical grounds, saying "this lady has some severe problems".
He suggested that her problems were psychological.
"I'm just going to keep her in a better facility for her condition, meaning one that has a more intense form of medical support, and will watch her behaviour so there isn't anything that is harmfully done to herself by herself," Mr Baca said.
She had been held at the Century Regional Detention Centre in Lynwood, California, in a special unit for celebrities, public officials, police officers and other high-profile inmates, and has so far served five days of her sentence.
Specific details of her medical problem have been withheld for "privacy reasons".