The function clear-rules
clears contexts and rules. The list of KnowledgeWorks classes and the object base remains unaffected. The default context default-context
is not removed, but all rules in it are.
KnowledgeWorks and Prolog User Guide (Windows version) - 26 Feb 2015