Delete Article Template Field

Meru
Kilo Contributor

Can we delete the Article Template Field ?I know we can inactivitate  it but can we delete it ?

3 REPLIES 3

sachin_namjoshi
Kilo Patron
Kilo Patron

It's not best practice to delete field since it may have cascade delete impact and you will loose data.

 

Regards

Sachin

Lokenath Chakra
ServiceNow Employee
ServiceNow Employee

Hi Meru,

Article template fields can't be deleted.

As you rightly said, they can be made inactive.

Regards,

Lokenath

Stepan Kravciv
Tera Contributor

You can delete you custom template field with background script

var gr = new GlideRecord('kb_article_template_definition');
gr.query();
if (gr.get('sys_id')) {
    gr.deleteRecord();
}