Repository: vscode
Issue: Settings Sync - Error clearing cloud data
Labels: bug,settings-sync

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes/No

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 
```
Version: 1.84.0-insider (user setup)
Commit: 9bb94efbe279580856897b63cc9417a3e875e405
Date: 2023-10-12T16:59:43.701Z
Electron: 25.8.4
ElectronBuildId: 24154031
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.23560
```


Clicked on `Clear Data in Cloud...` option from the `...` overflow menu, got this:

![Image](https://github.com/microsoft/vscode/assets/1487073/544bdc30-d461-4207-8edd-3a87d751aef9)

from dev tools:


![Image](https://github.com/microsoft/vscode/assets/1487073/670261b7-e5b7-485a-a3f0-638cd8a89a10)

the current log

```
2023-10-12 14:50:08.321 [info] Using settings sync service https://vscode-sync-insiders.trafficmanager.net/
2023-10-12 14:50:08.321 [info] Auto Sync is enabled.
2023-10-12 14:50:08.321 [info] Auto Sync: Suspended until auth token is available.
2023-10-12 14:50:10.120 [info] Deleting non existing profile from backup /C:/Users/cdias/AppData/Roaming/Code - Insiders/User/sync/extensions
2023-10-12 14:50:16.706 [info] Auto Sync: Triggered by Interval
2023-10-12 14:50:16.706 [info] Sync started.
2023-10-12 14:50:16.998 [info] Extensions: Last sync resource does not exist locally.
2023-10-12 14:50:17.516 [info] Extensions: No changes found during synchronizing extensions.
2023-10-12 14:50:17.530 [info] Sync done. Took 825ms
2023-10-12 14:50:49.141 [info] Auto Sync: Triggered by Activity
2023-10-12 14:50:49.141 [info] Sync started.
2023-10-12 14:50:49.319 [info] Extensions: No changes found during synchronizing extensions.
2023-10-12 14:50:49.321 [info] Sync done. Took 180ms
2023-10-12 14:51:22.154 [info] Cleared data on server
2023-10-12 14:51:22.470 [info] Request failed {"url":"https://vscode-sync-insiders.trafficmanager.net/v1/resource/machines/latest","status":404,"operation-id":"771c48731a5247dcbeb29685aa79f0a5"} Not Found
2023-10-12 14:51:24.610 [info] Auto Sync: Triggered by Activity
2023-10-12 14:51:24.610 [info] Sync started.
2023-10-12 14:51:24.655 [error] TurnedOff (UserDataSyncError) syncResource:unknown operationId:unknown: Cannot sync because syncing is turned off in the cloud
    at a.I (c:\Users\cdias\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\code\node\sharedProcess\sharedProcessMain.js:108:91581)
    at async a.H (c:\Users\cdias\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\code\node\sharedProcess\sharedProcessMain.js:108:90933)
2023-10-12 14:51:24.690 [info] Auto Sync: Disabled.
2023-10-12 14:51:24.690 [info] Auto Sync: Stopped
2023-10-12 14:51:24.694 [info] Did reset the local sync state.
2023-10-12 14:51:24.694 [info] Auto Sync: Turned off sync because sync is turned off in the cloud
```