RehabReda 0 Light Poster

Hi Guys
now i am in a problem
i want to make a program that assert some database and then retract the one which have a specific thing
then display the database after retracting
well i have coded it
but it display the new + the old
i want the new only to be display means after retracting

database-db
anything2(integer,integer,integer)

predicates
nondeterm anything.

clauses


anything:-
anything2(1,X,Y),
retractall(anything2(1,X,Y)),
assert(anything2(3,X,Y)).


goal

  assert(anything2(1,2,3)),assert(anything2(2,2,3)),
  assert(anything2(1,1,3)),anything,anything2(X,Y,Z).