How to Delete empty Categories in Fuji Knowledge Base

dp11
Tera Guru

Hi,

I had created some categories in the version 3 knowledge base (Fuji release). I want to delete a few of these but Fuji doesn't let me delete them. All I can do is set their active state to False. They don't contain any subcategories or articles. So why can't I delete them?


Thanks,

Debashree

1 ACCEPTED SOLUTION

Rohant Joshi2
Kilo Expert

Hi Debashree,



I had same issue and was able to figure out the reason for it. Hope this will be useful for other who are referring to this thread.


To delete category from kb_category table there are certain conditions needs to be met. Admin also has to satisfy the condition as there is no "Admin Override" checkbox checked on the ACL.



        1. You should be manager/owner of the knowledge base.


        2. The category should be the last child category and none of the article should be using that category.



Please mark this as correct, if this helps you.


Thanks


Rohant Joshi


View solution in original post

6 REPLIES 6

bernyalvarado
Mega Sage

Hi Debashree, you can't delete it because of the delete ACL on the kb_category table.



The line in the ACL that prevents it from been "deletable" is the following: new KBCategory().canDelete(current.sys_id);



Comment out that line and you will be able to delete your Knowledge Category.



Thanks,


Berny


Hi Berny,



Thanks for the reply. I shall try this out after discussing in our group.



Thanks,


Debashree


You're welcome Debashree! I should have added that i tried it in my Fuji sandbox instance and it worked .



Thanks,


Berny


Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Debashree,



Please check the below URL by replacing with INSTANCE NAME. Make sure you check "Admin overrides" for the below ACL to make delete button visible for admins.


https://YOURINSTANCENAME.service-now.com/sys_security_acl.do?sys_id=823c65e0d702210013ab49547e610387...



Please let me know if you have any questions.