Delete shared files or folders in iCloud Drive on iCloud.com
In iCloud Drive on iCloud.com, select the file or folder you want to delete.
Click in the iCloud Drive toolbar and confirm you want to delete the file or folder.
One of the following happens:
If you are the owner: the file or folder is removed from the devices of everyone you shared it with. You can recover deleted files on iCloud.com.
If you are a participant who can change shared files: deleting a file or folder from within a shared folder deletes it from everyone’s devices. Deleting a shared folder removes it from your devices, but does not remove it from the owner’s or other participants’ devices. You can access the file or folder again by clicking the original link that the owner shared, unless the owner has stopped sharing the file or folder.