template deletion steps