using at() should also work

probably your delete is never being called, set a breakpoint and see it ever gets executed