The price of the share stays the same but there are fewer shares, so the market cap would go down.
That said, this is all under a theoretical model (as in Miller-Modigliani theorem). In practice/empirically, there is reason to plausibly believe that e.g. the decision to announce a buyback has a signalling effect and so can increase share prices.