Idiom
cut off your nose to spite facecut off (your) nose to spite (your) face
to do something because you are angry, even if it will cause trouble for you.'The next time he treats me like that, I'm just going to quit my job.' 'Isn't that a bit like cutting off your nose to spite your face?'