Undebugged implementation of delete and undelete item