Recover accidentally deleted files from iCloud
You could simply login to iCloud.com to recover that file. Under iCloud Settings (by clicking your name in the top-right corner) you will find a section named Advanced. Simply click Restore Files under Advanced to open the Recently Deleted File browser.