About deleting the knowledge base.

Luca_S
Giga Contributor

Hello,

 

I have a question about deleting the knowledge base.
From my research, it seems that I need to run a script in [Scripts - Background] to delete the knowledge base, but is there any other way to delete the knowledge base?
I would like to know if there is a simpler way to do this.

 

Please lend me your wisdom.
Thank you.
1 件の受理された解決策

Hello,

There is an OOB ACL as you can see so that is the reason why you see the delete option s read only.

find_real_file.png

That is why you have to use script only so I had pasted the script in my earlier message not sure if you saw it.

Please mark answer correct/helpful based on Impact.

 

元の投稿で解決策を見る

5件の返信5

Saurav11
Kilo Patron
Kilo Patron

hello.

You can use the below script to do it using either background script or schedule job.

var kbase = new GlideRecord('kb_knowledge_base');  
kbase.addQuery('sys_id', 'SYSID OF KB TO DELETE HERE');  
kbase.query();   
if(kbase.next()) {  
    kbase.deleteRecord();  
} 

Just one question before deleting the knowledge base what about the articles which are in that knowledge base or is it like the Knowledge base does not have nay article.

Please mark answer correct/helpful based on Impact.

Anil Lande
Kilo Patron

Hi,

If you war an Admin then you can delete knowledge base by OOB UI Actions:

find_real_file.png

Or You can open record and see Delete UI Action on form.

Don't you see these OOB options on your instance?

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

hello,

Thank you for your reply.

I tried to run Delete UI Action with a user who has the admin role, but it was grayed out and I couldn't do it.
Is there any way to resolve this?

find_real_file.png

Hello,

There is an OOB ACL as you can see so that is the reason why you see the delete option s read only.

find_real_file.png

That is why you have to use script only so I had pasted the script in my earlier message not sure if you saw it.

Please mark answer correct/helpful based on Impact.