Availability:C-language interface function
void PL_rewind_foreign_frame(fid_t 
id)Undo all bindings and discard all term references created since the 
frame was created, but do not pop the frame. That is, the same frame can 
be rewound multiple times, and must eventually be closed or discarded.