Deleting Knowledge Categories

connielewis
Kilo Explorer

We are trying to delete Knowledge Categories that are not associated with any articles. The "Delete" function is grayed out. Could you provide info about what steps to take?

4 REPLIES 4

Rahul Jain11
Kilo Guru

Hi,



You can write a script to delete the records from the kb_category table. But qst make sure you should query only the records those you want to delete.



var gr = new Gliderecord('kb_category');


gr.addQuery(<your query to get the record>);


gr.query();


while(gr.next()){


gr.deleteMultiple();


}


art_jones
Kilo Sage

Hi Connie;



This is due to an out-of-the-box ACL on the Knowledge Category (kb_category) table.  



The delete access control for that table has the following in the script section:


        Capture.JPG


You could temporarily comment out that line to delete a specific category.



-Art


Nestor2
Giga Contributor

You could create an User criteria which includes you / group of users that should be able to delete categories and then, assign that User Criteria in the related lists "can write" and "can contribute".



If you need to create a new User criteria, you can do it directly from the foretold related lists, by clicking on the "New" UI Action.




Hope that makes sense.


Rohant Joshi2
Kilo Expert

How to Delete empty Categories in Fuji Knowledge Base



Please mark this as correct, if this helps you.


Thanks


Rohant Joshi