 When I use the above code to search first and then delete, it throws a "value not in list" exception, which is strange.