It's for one of my assignments.
If you were manually typing in a response to an assignment and it got erased, then I'm afraid that it's gone. You will need to type it in again.
For long essays or extended answers, it's probably best to compose them outside of Canvas and save them as a document, then cut and paste or attach them.
Retrieving data ...