A San Diego-based sailor was booted from the Navy last month after she pleaded guilty to abusing cocaine and LSD.

Sonar Technician (Surface) Seaman Annie N. Lunsford initially faced charges for distributing cocaine and LSD to a pair of third class petty officers, but those charges were dismissed as part of a plea agreement, according to legal filings.

Instead, she copped to using and possessing the drugs on several dates in 2018 in San Diego, according to records from her March 7 special court-martial.

Lunsford also pleaded guilty to several counts of unauthorized absences — three days or less — from Training Support Center San Diego.

The Alabama native was sentenced to a bad conduct discharge, reduction in grade to E-1 and 10 months of confinement.

But as part of her plea deal, Lunsford would only serve 120 days in the brig — and 85 days of pretrial confinement already were credited to her, according to records.

Lunsford initially faced additional charges for procuring fake urine to beat a test for herself and one of the petty officers, according to charge sheets.

The two petty officers involved were administratively separated in lieu of court-martial, Navy spokesman Kevin Dixon said.

Lunsford’s military attorney declined comment through a Navy public affairs officer.