- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2019 07:03 AM
Hello,
We create several Knowledge Bases on TEST instance and we would like to delete them.
How can we do that? I Don't find. Please, be precise I am a novice.
Thanks a lot,
Sandra
Solved! Go to Solution.
- Labels:
-
Knowledge Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2019 07:10 AM
Hi Sandra,
As admin, run a background script to delete the specific record (be careful in doing it in production, please do first in test environment):
Go to System Definition > Scripts - Background, copy and paste the following script, replace the SYSID of your Knowledge Base (see image below) and press Run script:
var kbase = new GlideRecord('kb_knowledge_base');
kbase.addQuery('sys_id', 'SYSID OF KB TO DELETE HERE'); // you can right click the kb record header to copy the sysID
kbase.query();
while (kbase.next()) {
kbase.deleteRecord();
}
Done!!! Enjoy 🙂
If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
Thank you
Cheers
Alberto

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2022 03:11 PM
Hi saurabh_jadhav
By design, it's recommended that users mark Knowledge Bases which are no longer required as inactive rather than deleting them. This is reflected in the platform as you can't simply delete a knowledge base. This safeguards against orphaning or potentially accidentally deleting knowledge articles.
My responses above were in relation to someone who was deleting a knowledge base, I was simply sharing an example script of how to bulk move knowledge articles from one knowledge base to another.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2022 03:26 AM
Alright, thank you so much James for the clarification!😄
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2019 07:20 AM
It works.
Thank you VERY VERY MUCH 😄
Best regards,
Sandra Chiaretto

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2019 07:22 AM
You are welcome Sandra 🙂
Ciao ciao
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2019 09:06 AM
Excellent! Thank you kindly Alberto