And you saved over it? unless you keep backups, I'm afraid you will have to recreate the hierarchy, but given that you just deleted the nodes in scenetree then the good news is any scripts should still exist in the file system so not all should be lost.
But I strongly recommend learning to keep backups for important projects.