How to recover deleted files, contacts, calendars, and photos from iCloudIf you delete something in iCloud on your Mac, iPhone, or iPad, you can recover it within 30 days through iCloud.com!
When you delete something on your Mac it goes into Trash and, from there, you can either recover it or eradicate it forever. iCloud offers something similar, only its deleted files exist, not on your Mac, iPhone, or iPad, but online. In some ways it's even more powerful—deleted files can be restored for up to 30 days, even if you've emptied the Trash on your Mac or wiped them from your iPhone or iPad. That's great if you make a mistake and either delete something by accident or delete something you later realize you shouldn't have.
Note: If you try to go to iCloud.com on iPhone and iPad, you'll be redirected to Apple's iOS apps. To get to the iCloud.com website, you'll need to use a web browser on Mac or Windows PC.
How to recover deleted files from iCloud
If you delete an iCloud Drive file on your Mac, it will tell you it's moving the file to Trash and removing...
Source:
How to recover deleted files, contacts, calendars, and photos from iCloud