On iCloud.com, you can recover files deleted from both iCloud Drive and other apps within the last 30 days, whether you deleted them on iCloud.com or another device that has iCloud Drive turned on. However, you cannot recover or restore files you have permanently removed.
Here is how to recover files deleted from iCloud Drive:
Step 1: In iCloud Drive on iCloud.com, click Recently Deleted in the sidebar.
If you do not see the sidebar, click the Open Sidebar button.
Step 2: Click Recover All, or select each file you want to recover, then click Recover.