Question: how to remove icloud photos from just one device?
Answer: If you are using iCloud Photo Library, then it is normal for deleting a photo on one device to also delete it from iCloud and from any other device that is using the service. This behaviour cannot be changed. You can disable iCloud photo syncing (chews up a ton of memory anyway) and use something else.