in reply to Seek and delete

I am trying to achieve a very simple task, or so I thought till I started trying to accomplish it.
Could we see what you tried to implement? What was difficult about this "simple task"?