clear

abstract fun clear()(source)

Deletes every entry in this store's service/account namespace, without needing to know the individual keys. Other namespaces are untouched. Clearing an empty namespace succeeds silently as long as the backend itself is available.

This is also the recovery path after KeychainUnavailableException.Reason.Corrupted — for example, when Android Keystore lost the namespace's encryption key.

Throws

if the backend is unavailable or the delete fails.