deleteContainerState

abstract suspend fun deleteContainerState(userId: String)(source)

Removes the container state for a specific user from the database.

This operation permanently deletes all stored container state data for the specified user, including learning models, configuration parameters, and temporal metadata. The deletion is atomic and cannot be reversed, making it suitable for user data cleanup and privacy compliance scenarios.

Privacy and Compliance:

  • Complete data removal supports GDPR and privacy regulations

  • Atomic deletion prevents partial state corruption

  • Cascade behavior can be configured for related entities

Performance Characteristics:

  • Indexed deletion provides efficient O(log n) performance

  • Single transaction ensures consistency during concurrent operations

  • Immediate disk space reclamation through database optimization

Parameters

userId

Unique identifier for the user whose container state should be deleted

See also

Method for storing container states

Companion method for complete user data removal

Throws

SQLException

If database deletion operation fails

SecurityException

If user lacks deletion permissions