The clear-kb macro deletes all objects in specified partitions of a knowledge base and its descendants.
clear-kb &optional knowledgeBase &key partitions
The knowledgeBase argument is the knowledge base to be cleared, or a symbol or string which names that knowledge base. It defaults to the current knowledge base.
The partitions argument is a keyword or list of keywords specifying the types of objects to be deleted. Available partitions are :instances, :concepts, :relations, and :behaviors. If this argument is not supplied, all partitions are used.
The cleared knowledge base is returned.
(clear-kb) ==> |K|USER-KB
(clear-kb "USER-KB" :partitions (:concepts :relations)) ==> |K|USER-KB
Last modified: Jun 1 1995