Closing a task is as simple as clicking the Close button against the task. Any sub-tasks still open will also be closed.
It is good practice (but not required) to provide an activity note when closing a task:
Once closed, the status of the task changes:
And the task is removed from the To Do list.
You can re-open a task that was accidentally closed through the project.