Lil Pump’s out of the pokey after spending a day locked up in Denmark, and officials there are making it clear … they don’t want him coming ’round there no more.

According to TMZ, he was released from police custody Wednesday morning. As was reported … cops in Copenhagen busted his crew Tuesday for holding something illegal, and decided todetain them longer after Pump live streamed the incident and flipped the bird at an officer.

Turns out, the “illegal” thing was weed … so Pump and his pals had to pay a fine between $700-800 before they got sprung.

They’ve been asked to leave the country. They obliged and are now on their way to Oslo for Lil Pump’s next show.