deleteTask

abstract suspend fun deleteTask(taskId: String): RainbowResult<Unit>

Deletes a Task identified by its unique ID.

This function removes the task with the given taskId from the user's task list. After a successful deletion, the tasks property will automatically reflect the latest state.

Make sure the taskId corresponds to an existing task, otherwise the operation will fail.

Return

A RainbowResult containing Unit on success, or a com.ale.infra.rest.listeners.Failure if the deletion fails.

Parameters

taskId

The unique identifier of the task to delete.