You can delete the photos in your iPhone but not iCloud by turning off photo sharing, switching iCloud accounts, or using a different cloud server.