delete template now working