updated deleteFromQueue method to delete the item node in the repo