Delete old template before overwriting it with new. (merging hashset otherwise)