How can I delete a change template?

tomp
Kilo Contributor

We created a change template but it contains errors and we started again.

We could make the template Disabled.   However we would like to get rid of it altogether.

At the bottom of the page there's a drop-down menu "Actions", but all options except "New" are greyed out.

So how do we eradicate this template?

9 REPLIES 9

tomp
Kilo Contributor

Zic, I am not sure what you mean with "Go to UI Action"?   I do not see such a thing in the menus, nor in the configuration menus under the cogwheel icons.


I recommend against modifying the UI Action as it could have global implications and as a long term solution, you don't want others deleting templates for the reasons mentioned above (orphaned or hanging references.)


Hi Zica,

helpful option.

Thanks 

Michel 

zica
Giga Guru

Anton,



Never mind, forget for this solution,


As our Guru Chuck said, it is not a best practice therefore do not take it into account.


The best would be to do it from script (either fix script or background script : for this second one, you may need to elevate the privilege) and execute the code and delete the record directly from the template table (sys_template)


mikeblocker
Kilo Explorer

If you can't delete it, hide it!   Here's what I did:


  1. Set the template to inactive
  2. Remove all the fields
  3. Change the name to "Delete me!"
  4. Change the group to the ServiceNow support group