No, as far as I know there is no backup/retrieve with SAS OnDemand for Academics. So if you delete a file or folder it will be gone. Sorry. The exception might be if the code is still available in one of the open program tabs in sas studio UI. But if you like me try to keep only 1 program open to avoid confusion then you are out of luck I think.
Best regards, Jos