SWI-Prolog Did You Know We need you to to keep SWI-Prolog sustainable Search Documentation:
PL_thread_destroy_engine()