If you delete a doc by accident and need to restore it from trash, you'll see the following message:
Click the Undelete doc to restore the doc.
You can also find recently deleted docs -
And if these fail you can try to restore from your Google Drive's Trash if your workspace is connected to Google Drive.