support template deletion prevention