Exclusive Details

Soulja Boy is behind bars after a judge ruled he'd violated his probation in several ways .. including having ammunition in his house.

Soulja walked into an L.A. courtroom Thursday for his hearing, but was taken into custody at the end. The judge said the rapper had failed to do his court-ordered community service ... and even conspired to falsify evidence that he had completed it.

But, the big no-no came during a raid at Soulja's Agoura Hills home in February. TMZ broke the story ... police went to his house to investigate a claim by one of his ex-girlfriends that Soulja had tied her up and held her captive in his garage.

According to the judge, cops found ammunition during the search ... which is a problem because Soulja's on probation for a weapons case that dates back to 2014.

Play video content

Soulja was arrested back in March after going to see his probation officer, but was released that same day. As soon as he got out, he bragged he wasn't going out like Tekashi69.

This time he's being held without bail and will remain in custody until a hearing scheduled for April 30.