Need help removing/deleting attachments in Knowledge Articles

NixFab
Tera Contributor

I am a Knowledge Admin and I've been trying to figure out how to delete/remove attachments from KB articles.

Several things you need to know:

1. There's a max of 20 attachments/jpgs/images allowed

find_real_file.png

2. The article author reached the max but we needed to make edits/changes because the images were not good. I've deleted the image in the body of the article but it does not remove itself from the list of attachments already uploaded for the article. 

3. I've clicked on Manage Attachments and I don't see any option for me to remove/delete any of the existing ones.

find_real_file.png

4. I've also made myself the author in case that helped but it didn't. It was exactly the same.

2 REPLIES 2

Musab Rasheed
Tera Sage
Tera Sage

Hello,

Looks like you don't have ability to delete attachment and ACL on sys_attachment table must be restricting this, please debug yourself and see which ACL is preventing this

https://instance/sys_security_acl_list.do?sysparm_query=nameSTARTSWITHsys_attachment%5Eoperation.nameSTARTSWITHdelete&sysparm_first_row=1&sysparm_view=&sysparm_choice_query_raw=&sysparm_list_header_search=true

Debugger :

https://docs.servicenow.com/bundle/paris-platform-administration/page/administer/contextual-security/concept/c_AccessControlRulesDebug.html

Please hit like and mark my response as correct if that helps

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab

Janel
Kilo Sage

Knowledge versions can cause mayhem with unused attachments sitting around.  Think about the number of images copy/pasted into a knowledge article.  If you delete it from the HTML body, the attachment doesn't go away. 

 

One of the things we did was a check for image usage in the HTML body before publishing and deleted images that were not used.

On publish, we'd get the sys_id's of image types of the attachments on the article.  Then we'd do a check in the HTML body to see if that sys_id existed.  If it was not in the body, we'd delete the attachment.  We did have a client script that warned users that unused attachments would be removed.