The correct answer is: A. ought not have done

The sentence "I told him clearly that he hadn't ought to do that to me" is grammatically incorrect. The correct way to say this would be "I told him clearly that he ought not have done that to me."

The word "ought" is a modal verb, which means that it expresses a possibility or obligation. In this case, the speaker is saying that the person they are talking to should not have done something. The past participle "done" is used to form the negative of modal verbs.

The other options are incorrect because they do not use the correct verb tense or form. Option B, "ought not done," is incorrect because it uses the simple past tense, which is not appropriate for expressing a negative obligation. Option C, "ought not has done," is incorrect because it uses the past perfect tense, which is not appropriate for expressing a current obligation. Option D, "hasn't ought to do," is incorrect because it uses the present perfect tense, which is not appropriate for expressing a past obligation. Option E, "No correction required," is incorrect because the sentence is grammatically incorrect.