Sync deleting all remote files

Things I have tried

Creating new remote vault
reverting to back up vault
disconnected sync and reconnected to both original and new vault

What I’m trying to do

Fix obsidian sync for my vault. In it’s current state it downloads most files from the remote vault, then proceeds to delete all the files it just downloaded. The end result is that my vault restores to 90% of what it was then purges to close to 0%.