xxxxxxxxxx
To delete photos from a Mac computer, but not iCloud, open System Preferences.
Click on Apple ID, then iCloud, and then uncheck Photos to turn off iCloud sync.
This will disconnect the photos from iCloud, allowing the photos to be deleted
off of the computer
but not iCloud.