Is there a way to retractall clauses by partial match .. let say i have the following grammar :
s3-->[a, b, r, a]. s4-->[a, b]. s5-->s4, s4. <
s3-->[a, b, r, a]. s4-->[a, b]. s5-->s4, s4.