If you have an Apple Mac, there are a few ways to delete photos from the computer but not from iCloud.

  1. Delete photos one by one by pressing theDelete key on your keyboard.
  2. Delete photos from the Photos app on your Mac by clicking on the Photos icon in the Dock and selecting “Delete photo.”
  3. Delete photos from iCloud by going to Settings and clicking on iCloud Drive.