If you check the docs, you’ll notice it’s missing. Googling “curses delwin python” gives a few people asking about it but no answers. HERE IS AN ANSWER:
You don’t need it. Python internally calls it when the window object is deallocated, or when you shutdown curses with curses.endwin(), whichever happens first.