Raghav Sharma24
Giga Patron

kb_knowledge is the table for knowledge articles not knowledge base.

Try this script in After Delete Business rule on kb_knowledge table:

 

    var att = new GlideRecord('sys_attachment');
    att.addEncodedQuery('table_sys_id=' + current.sys_id);
    att.query();
    att.deleteMultiple();


Please mark the answer correct/helpful accordingly.

 

View solution in original post