In a live casino, the dealer manually removes chips from the pot while the hand is being played and sets them aside to be dropped into a secure box after completion of the hand. When playing online, the rake is taken automatically by the game software.
During a real casino game, the dealer manually collects chips from the betting pool while the game is in progress and stores them in a safe container until the end of the game. Conversely, online games use automated systems to collect the rake during gameplay.