The only effective way that you could do this is from within an
external appliation calling clips. You would run the CLIPS engine in
a single step fashion within a loop. In your CLIPS code where you
wanted to put the Clear command in you would instead assert a fact as
a flag. Back in your external application you could check for the
flag and call the clear function externally.
Of course this would mean that your CLIPS deftemplates, defrules etc
and all instances of everything would be deleted from the CLIPS
engine. What are you trying to achieve from clearing at that point in
your app?