Apple has little known iCloud tools that are designed to let you recover files that have been deleted from iCloud, as well as recover Contacts, Calendars, and Reminders that have been lost.
Lost iCloud data isn't a situation that comes up often, but these tools were introduced following an iCloud Drive bug in 2015 that caused some users to lose documents stored in iCloud Drive, prompting the creation of the tool.
Accessing Your Files on iCloud.com
1. Visit the iCloud.com website on your web browser of choice.
2. Enter your Apple ID, password, and two-factor authentication code if the feature is enabled.
3. Once logged in, click on the "Settings" app in the main iCloud menu.
4. Scroll down to the bottom of the page until you reach the "Advanced" section.
5. Click on the content that you need to restore. Options include files stored in iCloud Drive, a list of contacts, your Calendars and Reminders, or your Bookmarks.
Restoring Files
Using the "Restore Files" option on iCloud.com brings up a list of all files that have been deleted over the past 30 days. It includes files from apps that support iCloud Drive, such as Pixelmator, Napkin, and Byword.
You can select a single file to restore or multiple files, should there have been a catastrophic event that caused iCloud Drive to be wiped entirely. Check the box to make a selection and click "Restore File." Using the file restoration tool returns the file in question to iCloud Drive in its original parent folder, much like undeleting a photo on iOS.
Deleted iCloud Drive files remain available in iCloud for 30 days before being permanently deleted, at which point they become unrecoverable. As a side note, you cannot do a manual permanent deletion with iCloud Drive files as you can do with Photos on iOS - they're sticking around for the full 30 days.
Restoring Contacts, Calendars, and Reminders
Apple regularly archives a list of Contacts, which can be restored to an iOS device at any time. Restoring a list of contacts from the archive will replace the contacts on all iOS devices connected to your iCloud account, while archiving the current list of contacts to ensure nothing is lost. Contacts can't be restored one by one -- this is an all or nothing batch operation.
Restoring Calendars and Reminders works like restoring Contacts. Apple frequently creates a backup for the two apps, capturing snapshots for more than a month. Any of these archives can be used to replace a current Calendar or Reminder list, replacing the existing information on all connected iOS devices.
Restoring a Calendar will remove all sharing information, so Calendars and Reminders shared with friends and family will need to be shared again. All scheduled events will also be cancelled and recreated, reissuing all invitations for events.
Restore Bookmarks
Along with Contacts and Calendars, Apple backs up the bookmarks that you have removed from your Bookmarks list in Safari on a regular basis.
To restore them, simply choose the deleted bookmarks you would like to put back in place and then choose the "Restore" option.