deleteFavorite

abstract suspend fun deleteFavorite(favoriteId: String): RainbowResult<Unit>

Deletes an existing favorite.

This method removes the specified favoriteId from the list of favorites. If the deletion is successful, the listener, if provided, will be notified via its onSuccess callback. If there is an error during the deletion process, the listener's onError callback will be invoked.

Return

A RainbowResult that will be notified of the result of the delete operation. The listener receives a Unit result on success or an error indication on failure.

Parameters

favoriteId

The String object representing the favorite id to be deleted.