Undo deleting lights and objects

Hello everyone,

is it possible to find a solution for the “x” in the top left corner for the tab of lights and objects present in the scene manager that no longer allows you to go back? Maybe a popup that displays a warning before deleting everything, not allowing you to go back? Thank you.

Noted, thanks for the suggestion!