Apple’s iCloud Drive lets you securely access all of your documents from your Mac, iPhone, iPad, iPod touch and even a Windows PC. If you need to access a file that you deleted within the last 30 days, you can recover it from iCloud.com. Here’s how:
Sign in to iCloud.com.
• Click Settings.
• Under Advanced, click Restore Files.
• Browse the list of files in the Restore Files window.
After 30 days, files are removed from Restore Files.
(This how-to is based on my experiences and info on Apple’s support pages — where the images sometimes come from.)