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 toolbar that appears at the bottom of the screen.
One of the following happens:
If you are 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 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 tapping the original link that the owner shared, unless the file owner has stopped sharing the file or folder.