Basic search in deleteTask method.