Delete shared files or folders in iCloud Drive on iCloud.com
Go to icloud.com/iclouddrive, then sign in to your Apple Account (if necessary).
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’re 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’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 clicking the original link that the owner shared, unless the owner stopped sharing the file or folder.