Lv_win - how to close the created window?

Description

The docs here:
https://docs.lvgl.io/8.1/widgets/extra/win.html
describes how to create a window. I would like to know what I should be doing to close/delete the window once I have finished using it.

What MCU/Processor/Board and compiler are you using?

Simulator

What LVGL version are you using?

8.1

What do you want to achieve?

Close/delete a window that was created using the above docs

What have you tried so far?

Code to reproduce

Screenshot and/or video

Thanks!

As far as I know it is safe to delete using lv_obj_del.

Perfect.
That worked without issue.

I’m sure that the documentation used to explain how to close a window. I must be going mad…

Thanks again @embeddedt !!