Just need to get the elements to be deleted properly after every console log