XPLMDestroyWindow

XPLM_API void       XPLMDestroyWindow(
                         XPLMWindowID         inWindowID);

This routine destroys a window. The window’s callbacks are not called after this call. Keyboard focus is removed from the window before destroying it.