Did you know ... Search Documentation:
PL_discard_foreign_frame()