how to delete the field in the table

chunn
Tera Expert

can you help me? how to delete the field in the table?

chunn_0-1697778675946.png

 There is no X symbol in front of this field but Delete in the upper right corner of the dictionary screen

chunn_1-1697778991028.png

 

1 ACCEPTED SOLUTION

Hello @chunn ,

 

Please open background script and use this -

var gr = new GlideRecord('sys_dictionary');
gr.addQuery('sys_id','726fbfac1b0e3550155a1f0b234bcbb0');
gr.query();
if(gr.next()){
    gr.setWorkflow(false);
    gr.deleteRecord();
}

 

Please mark my answer as helpful and solution accepted.
Thanks

View solution in original post

10 REPLIES 10

Ankur Bawiskar
Tera Patron
Tera Patron

@chunn 

Things to check

1) are you an admin?

2) are you in correct scope in which field is present?

3) Is this a custom field or an OOB field?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader