Does anyone know how to delete templates programatically?
Reason is to create a customized loader that can handle the problem when a non iterable template (such as task templates or container templates) need to be refreshed.
Today we get a silly exception that the template is already in the system and cannot be replaced.
Any help is appreciated!
Thanks and best regards,
Found out how to retrieve and delete task form templates before loading them:
First you need to find the template:
Then below code did the delete:
I have left out some stuff but I think you can figure that out yourselves