delete template code