How to recover deleted file?

If you delete file from your Personal/Department/Company account it will still be available in the Recently deleted folder in the account from where the document was deleted. From there you can Copy/Paste previously deleted file to 'normal' folders. Files will stay in this folder for 365 days*.

See here pre-1.28 version view
*this might change in the future