kick oneself

[kick oneself] {v. phr.}, {informal} To be sorry or ashamed;regret.

When John missed the train, he kicked himself for nothaving left earlier.

Mary could have kicked herself for lettingthe secret out before it was announced officially.