Meaning of “rewrite” - Learner’s Dictionary

rewrite

verb [ T ] uk us /ˌriːˈraɪt/ (past tense rewrote, past participle rewritten)

B2 to write something again in order to improve it:

I had to rewrite my essay.

(Definition of “rewrite” from the Cambridge Learner’s Dictionary © Cambridge University Press)