Anki doesnât delete anything when you hit sync. What likely happened is that you had an older version of your collection on AnkiWeb and clicked âDownload from AnkiWebâ instead of âUpload to AnkiWeb.â You can restore from a backup created before this happened by following this tutorial: How to Restore from Backup
To resolve the bug, please ensure you are on the latest version of Anki. You can download it here: https://apps.ankiweb.net/. After downloading, simply run the installer to update your app.