Made the confirm delete template generic