A family of Microsoft word processing software products for creating web, email, and print documents.
1
If you have not closed the document since that error, try pressing Ctrl + Z perhaps a couple of times to check if that can undo the deletion.
2
If that is not successful, log into OneDrive online (https://onedrive.live.com/), then try using the steps on this link to see if it is possible to recover a previous version of that file.