You can use the undo and redo buttons in the Editor if you have accidentally deleted an object.
You can find these keys at the top of the Stage:
Select the arrow on the left to undo an action, and the arrow on the right to redo an action.
You can also use the keyboard shortcut Ctrl + Z on Windows or Cmd + Z on Apple Mac computers to undo an action.