Like the picture
If there is [e] in the list, I want to delete [e].
When I press the delete button first, [e] disappears.
If I press the delete button after that, it disappears from the end of the list.
If I keep pressing the delete button, all the items in the list will be deleted.
What I want is
First I delete the [e] by pressing the delete button. And I press delete button afterwards. At this time, there is no [e] so it should not be deleted.
How can I implement this?