Danny Cooksey's ex-wife claims he's gone off the rails again — but this time, she's alleging a beating that actually required a judge to step in.
Amber Cooksey filed for and was granted a temporary restraining order against her "Diff'rent Strokes" ex ... because she claims the guy thrashed her on NYE ... and in front of their young son, no less.
In court docs, obtained by TMZ, Amber says Danny came over to her house on the holiday to be with their boy ... but his presence quickly became unwelcome, Amber says, because he allegedly started boozing and turning aggressive.
Amber claims she repeatedly asked him to leave, to no avail. She claims he hurled insults at her and "grabbed [her] breasts and crotch violently." She says she was terrified and tried to escape but claims Danny grabbed her by the neck and choked her until she passed out and he then stomped on her.
Amber says cops came the next day. In the meantime, she says she fears for her safety and needs court-ordered protection. The court agreed, giving her the TRO until a hearing later next month.
Keep in mind ... this isn't the first time Amber has asked for help with Danny — she got a restraining order against him in 2019, when they were in the thick of their divorce.
We've reached out to Danny ... so far, no word back.