If you delete something and the project is still open, you can undo in the history option in the top right.