deletion of the temporary template