Delete the screen contents with cursor

Description

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

Custom board

What LVGL version are you using?

8.3

What do you want to achieve?

I want to delete a screen which has cursor and pin entry I have created.

What have you tried so far?

Initially, the first screen has no cursor and when I switch to next screen I could delete the entire objects using -

lv_obj_t * prev_screen = lv_scr_act();lv_scr_load(next_screen);lv_obj_del(prev_screen);

But once I use the same code snippet to delete the screen which has cursor and pin entry, the blank screen is appearing!!

Can you please suggest!!