public function deleteAction()
 {
     //delete a todo item
     //retrieve the todo item first
     $todo = TodoItem::getItem($this->_params['todo_id'], $this->_params['username'], $this->_params['userpass']);
     //delete the TODO item while passing the username and password to authenticate
     $todo->delete($this->_params['username'], $this->_params['userpass']);
     //return the deleted todo item
     //in array format, for display purposes
     return $todo->toArray();
 }