Deleting something in your library moves it to the trash rather than destroying it, so a mistake is recoverable.
Restoring something
Click Trash in the Library section of the sidebar. It lists what you have deleted and where it came from.
Restore an item and it goes back where it was. Restoring a folder brings back everything inside it.

