There’s another bug report for that (or at least for behavior like that): Obsidian Sync repeatedly restoring deleted files.