"remote account" deleted files omg

So I had a similar thing happen to me on a public share that was password protected. My friend with the password who doesn’t have an account on my nextcloud server deleted the file by accident. I could not find the file anywhere afterwards. It did not end up in my trash bin at all. It seems like once it’s deleted from a public share by a “remote account”. It’s gone forever. I tested it with a random file and got the same results. If I delete the file after logging into my account, it’ll end up in my trash bin and I can recover it, but if the file is deleted by the “remote account” via the public link then it never gets put in my trash bin even though I am the original owner of the file. Is there a setting or something I can change to fix this?