Reputation: 355
I have the predicate color/2
with the following facts:
color(omlette, yellow).
color(tomato, red).
color(cucumber, green).
...
Now I want to completely remove it from the system, i.e. I want current_predicate(color/2)
to fail.
However, even if I retractall(color(_, _))
, and indeed all facts relating to color
are removed, current_predicate(color/2)
would still succeed.
How can I make it fail?
Upvotes: 0
Views: 215