retractall(Head)
Logtalk adds this built-in predicate, with the usual definition, to a Prolog compiler if it is not already defined.
retractall(+callable)
type_error(callable, Head)
| ?- retractall(foo(_)).