clear-kb [Macro]


Purpose

The clear-kb macro deletes all objects in specified partitions of a knowledge base and its descendants.

Syntax

clear-kb &optional knowledgeBase &key partitions

Arguments

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.

Value

The cleared knowledge base is returned.

Examples

(clear-kb) ==> |K|USER-KB 
(clear-kb "USER-KB" :partitions (:concepts :relations)) ==> |K|USER-KB

See Also

Last modified: Jun 1 1995