Kim Richards has been shut out by her entire family ... TMZ has learned -- but it's a case of tough love because we're told she's fallen off the wagon and was placed on a psychiatric hold earlier this month, but that hasn't ended the drama.
Law enforcement sources tell TMZ ... they showed up at a home Kyle owns in the L.A. area Wednesday night after a neighbor called them in hopes of getting Kim removed from the house. Apparently, the neighbors were concerned about Kim's behavior in the past.
We're told Kyle had let Kim live in the house but she moved out a while back ... but Wednesday Kim showed up again. Law enforcement says Kyle told them she did not want Kim in the house, because the family had cut all contact off in hopes it would shake Kim and get her sober again.
We're told cops explained to Kyle it was a civil matter and she'd have to file an eviction action. Kim remains in the house.
It gets even worse. Law enforcement tells TMZ back in early September Kim was at a Hilton Hotel in the L.A. area and was incoherent. Kyle was there, the cops were called and when they arrived they asked Kim to leave, but she refused. Law enforcement tells TMZ Kim was placed on a 5150 psychiatric hold and taken by ambulance to a hospital.
Law enforcement sources say when they showed up Wednesday night Kyle told them Kim's in deep trouble over her sobriety ... and the family is worried about her very survival.
If you don't know ... Kim and Kyle have a complicated relationship -- first coming to public attention during the 'RHOBH' season 1 finale where the two got into a huge fight about Kim's issues with alcohol.
Last year, Kim admitted she hadn't spoken to Kyle in months ... even after her separation from longtime husband Mauricio Umansky came to national attention.