Need urgent help about old version of a synced file

I formatted my phone and somehow my keepass file just gotten null and 0 Bytes . I need the old file right away , i tries recuva memory rescuing etc none of them worked , i need the old file from nextcloud is that possible please be fast

On the Nextcloud web interface, to go the zero byte file’s details and go to previous versions.

If it’s been deleted then look in the trash. You may be able to restore previous versions after restoring the file. I haven’t tried that personally.

You can also restore it from your backup of the server’s data folder.