AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# ITaskList.RemoveTask Method

Removes a task given the task ID.

void RemoveTask(
ITask task
);

#### Parameters

task
  The task to be removed; cannot be `null`.

#### Exceptions

Exception Type | Condition
--- | ---
CollaborationException | The method call resulted in an error.
InvalidOperationException | The object has not yet been stored or has already been removed.
ArgumentException | if the ID of the task is not > 0.
SoapException | There was a communication problem during the execution of the remote method call.

#### See Also

ITaskList Interface | Plumtree.Remote.PRC.Collaboration.Tasklist Namespace