delete the window