Fixed delete to use index. This removes the html that was rendered as well.