#include <curses.h>
The delwin() function deletes the specified window, freeing up the memory associated with it.
Deleting a parent window without deleting its subwindows and then trying to manipulate the subwindows will have undefined results.
On success, this functions returns OK. Otherwise, it returns ERR.
None.
derwin(3XCURSES), dupwin(3XCURSES)