deleteTask

abstract fun deleteTask(taskId: String, listener: RainbowListener<Unit, Unit>? = null)

Deletes a Task based on its unique ID.

This method removes the specified task from the system using its taskId. Upon successful deletion, the provided listener will be notified. The taskList property will be updated automatically to reflect these changes.

Parameters

taskId

The unique ID of the Task to be deleted. This must be a valid and existing task ID.

listener

An optional callback of type RainbowListener that is invoked upon completion of the operation. If not required, set to null.