177
178
async turnOff(everywhere: boolean, softTurnOffOnError?: boolean, donotRemoveMachine?: boolean): Promise<void> {
180
>
181
>
// Remove machine
182
>
if (this.userDataSyncAccountService.account && !donotRemoveMachine) {
183
await this.userDataSyncMachinesService.removeCurrentMachine();
184
}
186
>
// Disable Auto Sync
187
>
this.updateEnablement(false);
188
>
189
>
// Reset Session
190
>
this.storageService.remove(sessionIdKey, StorageScope.APPLICATION);
191
>
192
>
// Reset
193
>
if (everywhere) {
194
await this.userDataSyncService.reset();
196
>
await this.userDataSyncService.resetLocal();
197
>
}
198
>
} catch (error) {
199
this.logService.error(error);
200
if (softTurnOffOnError) {