cleanupNotifications

suspend fun cleanupNotifications(credentialId: String? = null): Result<Int>

Manually trigger notification cleanup based on the configured cleanup mode. This method can be used to clean up notifications outside of the automatic cleanup process.

Return

A Result containing the number of notifications removed during cleanup or an Exception in case of failure.

Parameters

credentialId

Optional ID of a specific credential to clean up notifications for.