The charges for the case against Amanda Bynes tossing a bong out her apartment window last year was dismissed after the actress complied with a New York Judge's orders to keep out of trouble and go to counseling.
Bynes, 28, was charged last year with reckless endangerment and marijuana possession.
Building managers called police because they said she was smoking pot in the lobby of her Manhattan residence.
When officers entered her 36th-floor apartment, they said they saw her heave a bong out the window.
Manhattan Criminal Court Judge Lori Petersen sealed the case after the dismissal.
Bynes' lawyer appeared in court on her behalf, but Bynes was not present at the courtroom.
The judge had previously said the charges would be dismissed if Bynes stayed out of trouble for six months and went to counseling twice a week during that period. Bynes' Lawyer Gerald Shargel submitted an affidavit saying Bynes had complied with the court's requirements.
"She did her counseling and it's now all behind her," her lawyer Gerald Shargel said outside court.
“The defendant has done very well [in treatment],” Manhattan Criminal Court judge Laurie Peterson said.
The judge sealed the records in the case, which ties up yet another loose end after a period of an odd series of behavior by the onetime Nickelodeon headliner.
In February in Los Angeles, Bynes pleaded no contest to reckless driving, which was a reduced charge related to her April 2012 arrest on suspicion of DUI. She picked up three years of probation and three months of alcohol education classes in that plea deal.
Last July, the "She's the Man" star was hospitalized on an involuntary 72-hour psychiatric hold after lighting a small fire in the driveway of a home in the Valley. The hold turned into months of inpatient treatment, and Bynes' mother was appointed as her conservator.
Bynes, who was released from rehab in December, has since enrolled as a student at the Fashion Institute of Design and Merchandising in Irvine.