reset

abstract suspend fun reset(): <Error class: unknown class>(source)

Resets the container to a fresh state, clearing all learned patterns and user data.

This operation performs a complete reset of the container, permanently deleting all learned behavioral patterns, interaction history, and personalization data. It effectively returns the container to its initial state as if it were newly created for a first-time user.

Reset scope and implications:

  • Learning state: All trained models and learned patterns permanently deleted

  • Interaction history: Complete removal of stored user interaction data

  • Personalization: User preferences and customizations reset to defaults

  • Performance metrics: Learning statistics and progress indicators cleared

  • Cached data: All cached predictions and intermediate results removed

Data privacy and compliance:

  • Satisfies "right to be forgotten" requirements under privacy regulations

  • Enables secure device handover between different users

  • Provides mechanism for complete data cleanup on user request

  • Ensures no residual data remains after reset completion

Post-reset behavior:

  • Container remains initialized and ready for new data

  • Learning engine reverts to baseline/untrained state

  • Data collection continues but starts fresh pattern recognition

  • Predictions return to default behavior until new patterns emerge

Asynchronous operation: The reset operation may be time-consuming and is performed asynchronously. The returned Job can be used to monitor progress, handle cancellation, or coordinate with other operations.

Return

A Job representing the asynchronous reset operation. The job completes when all data has been successfully deleted and the container has been returned to its initial state.

See also

for container setup after reset

Throws

IllegalStateException

if container is not properly initialized

ResetException

if reset operation cannot be completed successfully

StorageException

if data deletion operations fail