Delete shared folders or files in iCloud Drive on iCloud.com
In iCloud Drive on iCloud.com, select the folder or file you want to delete.
Click the Delete button in the iCloud Drive toolbar and confirm you want to delete the folder or file.
One of the following happens:
If you’re the owner: The folder or file 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 folder or file 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 folder or file again by clicking the original link that the owner shared, unless the owner stopped sharing the folder or file.