How to delete a specific value from the list