# resetAnonymousId

suspend fun resetAnonymousId(): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)

Destroys the keypair so the next [anonymousId](/developers/references/android/id-frak-sdk/frakclient/anonymousid/) mints a new identity.

This is a local identity rotation, not an Art. 17 erasure: events already sent stay attributed to the old id on Frak's side. Route an actual erasure request to https://frak.id/account-deletion.

#### Return

false when the platform keystore refused to erase the key; the identity did not rotate.