Delete shared files or folders in iCloud Drive on iCloud.com
In iCloud Drive on iCloud.com, tap Select, then select the file or folder you want to delete.
Tap in the iCloud Drive toolbar and confirm you want to delete the file or folder.
One of the following happens:
If you’re the owner: The file or folder is removed from the devices of everyone sharing it. You can recover deleted files on iCloud.com.
If you’re 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 doesn’t remove it from the owner’s or other participants’ devices. You can access the file or folder again by tapping the original link that the owner shared, unless the file owner stopped sharing the file or folder.