cleanUp
Invokes backup and then removes all legacy accounts and mechanisms from the storageClient.
The backup callback is always called first — the caller controls whether it is a real backup operation or a no-op. Cleanup then iterates every account, removes all of its associated mechanisms, and finally removes the account itself.
Cleanup failures do not propagate — the migration framework treats Step 3 as best-effort.
Parameters
context
The Android application context.
backup
Callback invoked before data is cleared. Receives the context. Pass a no-op (the default in LegacyAuthenticationConfig) to skip backup.