clearPersistentData

abstract fun clearPersistentData(onSuccess: () -> Unit, onFailure: (Throwable) -> Unit)

Clear all persistent data of the current Permutive instance. Callbacks will run on the main thread.

Parameters

onSuccess

Callback which is called on successful deletion

onFailure

Callback which is called when deletion fails


abstract suspend fun clearPersistentData(): Result<Unit>

Clear all persistent data of the current Permutive instance

Return

Result of clearing the data.