The firms can logout the shares or hold them as the treasury stock after repurchase. But these shares can't participate in calculation return per share and distribution proceeds.
Share repurchase by listed companies is the act of listed companies to buy back its emitted shares, then cancel the repurchased shares or hold them as "Treasury stock".