- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2023 02:15 AM
Hello,
In Utah I have created several HTML document template that I now want to delete.
I can't seem to find how. Templates are in Editing state.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 06:20 AM - edited 09-12-2023 06:24 AM
var docTemplateIds = [
'38e1ea601b59fd108cf1dce0b24bcbc8',
'1099aeac1b59fd108cf1dce0b24bcbbb',
'0ba9aeac1b59fd108cf1dce0b24bcbbf'
];
var gr = new GlideRecord('sn_doc_html_template');
gr.addQuery('sys_id', 'IN', docTemplateIds);
gr.query();
while(gr.next()) {
gs.info("Deleting Document Template : " + gr.name);
gr.setValue('state', 'draft');
gr.update();
}
Then I deleted them from the list.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2023 02:21 AM
Hello,
Refer below thread :- https://docs.servicenow.com/en-US/bundle/utah-platform-user-interface/page/use/using-forms/task/t_De...
- In the navigation filter, enter checklist_template. list .
- Select the check box by the checklist template you want to delete.
- In the actions choice list, select Delete, found at the bottom of the page.
- In the confirmation dialog box, click Delete.
Regards,
vaishnavi Lathkar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2023 03:02 AM
Hello,
thank you for the answer but my question is not related to checklists.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2023 02:23 AM
Hello Sarah
Refer Below Document:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2023 03:43 AM - edited 07-17-2023 04:24 AM
Hi Sarah,
I'm not sure if the HTML document template that you mentioned is this one, but I think you can try it. Let's navigate to All > Document Templates > All Document Templates. Please make sure that you have admin role to do this. The list will show all document templates, then you can delete what you want.
Hope this can help you!
Regards,
Moonie
-----
Please mark my response as correct/helpful as applicable!