This phrase is used to express that you don't agree with what someone did. It is pronounced with stress on the word "have".
This phrase is mainly used in spoken English and in casual or business settings. A more formal version of this is "Was it really necessary for you to ___?"
Follow PhraseMix